Function at 0x49653c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x4010c0]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x3c], edx
xor ecx, ecx
mov dword [esp + 0x70], esi
push edi
mov ebx, ecx
mov dword [esp + 0x44], eax
mov edi, dword [esi]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x48], ecx
movlpd qword [esp + 0x84], xmm0
mov dword [esp + 0x3c], edi
cmp dword [esi + 0x24], ecx
jne 0x496df7
mov ecx, esi
call fcn.004962cc
mov ebx, eax
mov dword [esp + 0x78], ebx
test ebx, ebx
je 0x496df3
push 0
push 0
push 0x80
mov edx, ebx
mov ecx, esi
call fcn.004acac3
mov ecx, eax
add esp, 0xc
mov al, byte [ebx + 0x2b]
mov byte [esp + 0x1b], al
xor eax, eax
inc eax
mov dword [esp + 0x5c], ecx
test ecx, ecx
jne 0x496609
push ecx
push ecx
mov edx, ebx
mov ecx, esi
call fcn.0049a77c
pop ecx
pop ecx
test eax, eax
jne 0x496606
and dword [esp + 0x1c], eax
jmp 0x49660d
xor eax, eax
inc eax
mov dword [esp + 0x1c], eax
mov edx, ebx
mov ecx, esi
call fcn.0049313c
test eax, eax
jne 0x496df3
push dword [esp + 0x5c]
mov edx, ebx
mov ecx, esi
call fcn.004963ac
pop ecx
test eax, eax
jne 0x496df3
mov edx, dword [ebx + 0x3c]
mov ecx, edi
call fcn.004a2c91
mov ecx, eax
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x10]
add ecx, ecx
push dword [eax + ecx*8]
mov ecx, esi
push 0
push dword [ebx]
push 9
pop edx
call fcn.0048fcdf
xor ecx, ecx
mov dword [esp + 0x3c], eax
inc ecx
add esp, 0xc
cmp eax, ecx
je 0x496df3
mov ecx, dword [esp + 0x40]
xor edx, edx
mov eax, dword [esi + 0x28]
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], edx
mov dword [ecx + 0x34], eax
mov ecx, dword [esi + 0x28]
inc ecx
mov dword [esi + 0x28], ecx
mov eax, dword [ebx + 8]
test eax, eax
je 0x49669e
inc ecx
inc edx
mov dword [esi + 0x28], ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x49668e
mov dword [esp + 0x4c], edx
cmp byte [esp + 0x1b], 2
jne 0x4966c0
mov eax, dword [esi + 0x100]
mov dword [esp + 0x80], eax
mov eax, dword [ebx]
mov dword [esp + 0x7c], esi
mov dword [esi + 0x100], eax
jmp 0x4966d9
mov eax, dword [esp + 0x88]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x80], eax
mov ecx, esi
call fcn.004a5717
mov edi, eax
test edi, edi
je 0x496dd4
cmp byte [esi + 0x12], 0
jne 0x4966f7
or dword [edi + 0x98], 0x10
push dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, esi
call fcn.004955b2
cmp byte [esp + 0x1f], 2
pop ecx
jne 0x496732
push dword [esp + 0x20]
mov edx, ebx
mov ecx, esi
push 0
push 0
push dword [esp + 0x50]
call fcn.00496429
mov eax, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x64], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x8c]
mov edx, dword [esp + 0x44]
xorps xmm0, xmm0
movlpd qword [esp + 0x94], xmm0
movlpd qword [esp + 0x9c], xmm0
movlpd qword [esp + 0xa4], xmm0
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], eax
call fcn.00484d9a
test eax, eax
jne 0x496dd4
mov ecx, dword [esp + 0x3c]
inc eax
xor edx, edx
mov ecx, dword [ecx + 0x24]
and ecx, eax
mov eax, edx
or eax, ecx
je 0x4967b8
cmp byte [esi + 0x12], dl
jne 0x4967b8
cmp dword [esi + 0x7c], edx
jne 0x4967b8
cmp byte [esi + 0x9d], dl
jne 0x4967b8
inc dword [esi + 0x2c]
mov ecx, edi
mov eax, dword [esi + 0x2c]
push edx
push eax
push edx
push 0x47
pop edx
mov dword [esp + 0x44], eax
call fcn.004746eb
add esp, 0xc
mov ecx, dword [esp + 0x1c]
xor eax, eax
inc eax
cmp dword [esp + 0x30], 0
jne 0x49687b
cmp dword [esp + 0x44], 0
jne 0x49687b
test ecx, ecx
jne 0x49687b
cmp byte [ebx + 0x2b], al
je 0x49687b
push dword [ebx]
mov edx, dword [esp + 0x18]
inc ecx
push ecx
push dword [ebx + 0x14]
mov ecx, esi
call fcn.0048fe11
add esp, 0xc
test byte [ebx + 0x1c], 0x80
jne 0x496828
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
push 0xffffffffffffffff
push dword [ebx]
test ecx, ecx
mov edx, 0x91
cmovne eax, ecx
mov ecx, edi
push eax
push dword [esp + 0x20]
push dword [ebx + 0x14]
call fcn.00474815
add esp, 0x14
mov eax, dword [ebx + 8]
test eax, eax
je 0x496da4
mov esi, eax
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
jne 0x496852
test byte [ebx + 0x1c], 0x80
je 0x496852
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
test ecx, ecx
cmovne eax, ecx
jmp 0x496854
xor eax, eax
push eax
push dword [esp + 0x18]
mov edx, 0x91
mov ecx, edi
push dword [esi + 0x2c]
call fcn.004746eb
mov esi, dword [esi + 0x14]
add esp, 0xc
test esi, esi
jne 0x496835
mov esi, dword [esp + 0x74]
jmp 0x496da4
test byte [esp + 0xa4], 0x40
push 0x1c
cmovne ecx, eax
pop eax
push 0x14
test ecx, ecx
pop edx
cmovne eax, edx
test byte [ebx + 0x1c], 0x80
movzx eax, ax
mov dword [esp + 0x30], eax
jne 0x4968c8
xor eax, eax
xor ecx, ecx
inc eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x2c]
push ecx
inc eax
push eax
push ecx
push 0x4b
pop edx
mov ecx, edi
mov dword [esp + 0x6c], eax
mov dword [esi + 0x2c], eax
call fcn.004746eb
add esp, 0xc
jmp 0x49691a
mov ecx, ebx
call fcn.00490d43
mov dword [esp + 0x1c], eax
push 0
movzx ecx, word [eax + 0x32]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x2c], ecx
movsx ecx, cx
push ecx
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x58], edx
mov ecx, edi
mov edx, dword [esi + 0x28]
push edx
mov dword [esi + 0x2c], eax
mov dword [esp + 0x40], edx
lea eax, [edx + 1]
push 0x76
pop edx
mov dword [esi + 0x28], eax
call fcn.004746eb
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, esi
mov dword [esp + 0x48], eax
call fcn.00474f4d
mov eax, dword [esp + 0x28]
mov ecx, esi
mov edx, dword [esp + 0x40]
movzx eax, ax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x20]
inc eax
push eax
push dword [esp + 0x34]
xor eax, eax
push eax
push eax
push eax
push dword [esp + 0x58]
call fcn.004bba53
mov ecx, eax
add esp, 0x18
mov dword [esp + 0x6c], ecx
test ecx, ecx
je 0x496dd4
mov eax, dword [ecx + 0x14]
xor edx, edx
mov dword [esp + 0x70], eax
inc edx
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x30], eax
mov al, byte [ecx + 0x2e]
mov byte [esp + 0x13], al
mov byte [esp + 0x84], al
cmp al, dl
je 0x496984
cmp dword [esi + 0x78], 0
mov eax, esi
cmovne eax, dword [esi + 0x78]
mov byte [eax + 0x14], dl
test byte [ecx + 0x30], dl
je 0x4969a3
push 0
push 0
push dword [esp + 0x28]
mov edx, 0x8f
mov ecx, edi
call fcn.004746eb
xor edx, edx
add esp, 0xc
inc edx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4969bc
push 0
push edx
push eax
push 0x56
pop edx
mov ecx, edi
call fcn.004746eb
add esp, 0xc
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
cwde
test ecx, ecx
je 0x496a13
and dword [esp + 0x14], 0
test eax, eax
jle 0x496a09
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
mov edx, ebx
add eax, esi
push eax
mov eax, dword [ecx + 4]
mov ecx, edi
movsx eax, word [eax + esi*2]
push eax
push dword [esp + 0x28]
call fcn.004886d1
mov ecx, dword [esp + 0x60]
add esp, 0xc
movsx eax, cx
inc esi
mov ecx, dword [esp + 0x1c]
cmp esi, eax
jl 0x4969d6
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
jmp 0x496a37
inc dword [esi + 0x2c]
mov edx, 0x87
mov eax, dword [esi + 0x2c]
mov ecx, edi
push 0
push eax
push dword [esp + 0x28]
mov dword [esp + 0x20], eax
call fcn.004746eb
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x496ada
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
movzx eax, ax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
add eax, 2
cdq
push edx
push eax
call fcn.004597ba
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x496a7a
mov ecx, dword [esp + 0x6c]
call fcn.004bc4c8
jmp 0x496dd4
mov eax, dword [esp + 0x4c]
inc eax
push eax
xor eax, eax
inc eax
push eax
push ecx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x58]
add esp, 0xc
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov byte [eax + edx + 1], 0
mov eax, dword [esp + 0x70]
test eax, eax
js 0x496aac
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x30]
test eax, eax
js 0x496aba
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x496acb
mov edx, eax
mov ecx, edi
call fcn.00474e0d
dec dword [esi + 0x38]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x68], eax
jmp 0x496b71
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x496b4b
inc dword [esi + 0x2c]
and dword [esp + 0x28], 0
mov ecx, dword [edx + 0x10]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x496b05
mov ecx, dword [esi]
call fcn.0049afd1
mov ecx, eax
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x54]
movsx edx, bx
mov ebx, dword [esp + 0x50]
push edx
push ecx
push eax
push edx
push ebx
push 0x61
pop edx
mov ecx, edi
call fcn.00474815
mov ecx, dword [esp + 0x68]
add esp, 0x14
movsx eax, cx
mov edx, 0x8a
mov ecx, edi
push eax
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x40]
call fcn.00474a00
mov ebx, dword [esp + 0x88]
add esp, 0x10
jmp 0x496b68
xor ecx, ecx
mov edx, 0x9c
push 0
inc ecx
push eax
push dword [esp + 0x68]
mov dword [esp + 0x34], ecx
mov ecx, edi
call fcn.004746eb
add esp, 0xc
mov ecx, dword [esp + 0x6c]
call fcn.004bc4c8
cmp byte [esp + 0x1b], 2
je 0x496bd0
xor eax, eax
cmp byte [esp + 0x13], 2
mov dword [esp + 0x48], eax
jne 0x496b99
push eax
push eax
push eax
push 0xf
pop edx
mov ecx, edi
call fcn.004746eb
add esp, 0xc
mov dword [esp + 0x48], eax
lea eax, [esp + 0x64]
mov edx, ebx
push eax
lea eax, [esp + 0x30]
mov ecx, esi
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 8
push 0x71
call fcn.0049d815
mov al, byte [esp + 0x2b]
add esp, 0x18
cmp al, 2
jne 0x496bd4
mov edx, dword [esp + 0x48]
mov ecx, edi
call fcn.00474ccb
jmp 0x496bd8
mov al, byte [esp + 0x13]
test al, al
je 0x496c18
xor ecx, ecx
inc ecx
cmp byte [ebx + 0x2b], cl
mov ecx, dword [esp + 0x2c]
je 0x496c92
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
cmp byte [eax + ecx], 0
je 0x496c92
mov eax, dword [esp + 0x28]
cwde
push eax
push dword [esp + 0x18]
push dword [esp + 0x70]
push ecx
push 0x1c
pop edx
mov ecx, edi
call fcn.00474a00
add esp, 0x10
jmp 0x496c8e
cmp dword [esp + 0x1c], 0
mov ecx, edi
je 0x496c75
push 0
push 0
push dword [esp + 0x3c]
push 0x24
pop edx
call fcn.004746eb
mov bl, byte [ebx + 0x2b]
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp bl, 1
mov dword [esp + 0x58], eax
cmovne ecx, edx
inc edx
push ecx
xor ecx, ecx
cmp bl, dl
cmovne ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x3c]
xor ecx, ecx
push 0x5e
pop edx
inc ecx
cmp bl, cl
mov ecx, edi
lea eax, [edx + 0x28]
cmovne edx, eax
call fcn.004746eb
mov ebx, dword [esp + 0x84]
jmp 0x496c8b
push dword [esp + 0x14]
push 0
push dword [esp + 0x68]
push 0x2e
pop edx
call fcn.004746eb
mov dword [esp + 0x64], eax
add esp, 0xc
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov edx, ebx
inc eax
cmp byte [ebx + 0x2b], al
jne 0x496d16
mov ecx, dword [esp + 0x3c]
call fcn.004b01e3
mov ecx, esi
mov dword [esp + 0x70], eax
call fcn.004b1034
cmp dword [esi + 0x78], 0
mov ecx, esi
cmovne ecx, dword [esi + 0x78]
xor ebx, ebx
inc ebx
mov byte [ecx + 0x15], bl
cmp byte [esp + 0x13], bl
jne 0x496ce5
push 0
push 0
push dword [esp + 0x28]
mov ecx, edi
push 0x7a
pop edx
call fcn.004746eb
add esp, 0xc
cmp dword [esi + 0x78], 0
jne 0x496ce5
mov byte [esi + 0x14], 0
push dword [esp + 0x14]
mov ecx, edi
push ebx
push 0
push 7
pop edx
call fcn.004746eb
add esp, 0xc
mov edx, eax
mov ecx, edi
push 0xfffffffffffffff5
push dword [esp + 0x74]
call fcn.00474eab
pop ecx
pop ecx
push 2
pop edx
mov ecx, edi
call fcn.00474c95
jmp 0x496d49
push dword [esp + 0x30]
cmp byte [esi + 0x12], 0
push dword [esp + 0x88]
sete al
push 0xb
movzx eax, al
push eax
push dword [esp + 0x38]
push dword [esp + 0x28]
push dword [esp + 0x7c]
push ecx
push dword [esp + 0x7c]
mov ecx, esi
call fcn.00496e35
add esp, 0x24
cmp byte [esp + 0x13], 0
mov ecx, edi
je 0x496d66
mov edx, dword [esp + 0x68]
call fcn.00474ac0
mov ecx, dword [esp + 0x6c]
call fcn.004bc4c8
jmp 0x496da4
cmp dword [esp + 0x1c], 0
je 0x496d8a
mov ebx, dword [esp + 0x58]
push 0
lea eax, [ebx + 1]
push eax
push dword [esp + 0x3c]
push 0x27
pop edx
call fcn.004746eb
add esp, 0xc
mov edx, ebx
jmp 0x496d97
mov edx, dword [esp + 0x58]
call fcn.00474744
mov edx, dword [esp + 0x58]
mov ecx, edi
call fcn.00474f68
mov ecx, dword [edi + 0x6c]
mov dword [eax + 8], ecx
cmp byte [esi + 0x12], 0
jne 0x496dbd
cmp dword [esi + 0x7c], 0
jne 0x496dbd
cmp dword [esi + 0x74], 0
je 0x496dbd
mov ecx, esi
call fcn.0049b581
mov eax, dword [esp + 0x38]
test eax, eax
je 0x496dd4
push 0x430b78
mov edx, eax
mov ecx, edi
call fcn.00496311
pop ecx
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
test eax, eax
je 0x496df7
mov ecx, dword [esp + 0x80]
mov dword [eax + 0x100], ecx
jmp 0x496df7
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
mov ecx, edi
call fcn.00495018
mov eax, dword [esp + 0x44]
test eax, eax
je 0x496e13
mov edx, eax
mov ecx, edi
call fcn.0048602a
test ebx, ebx
je 0x496e20
mov edx, ebx
mov ecx, edi
call fcn.00459528
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004caec8
mov esp, ebp
pop ebp
ret