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

Disassembly:
push 0xffffffffffffffff
push 0x4dbbb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov eax, dword [esp + 0x94]
mov edx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x90]
push ebp
mov ebp, dword [ebx + 4]
push esi
push edi
mov edi, dword [ebx]
imul edi, ebp
mov esi, ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0xc]
mov eax, 0x64
push 0x320
mov byte [esp + 0x1b], 0
mov dword [esp + 0x64], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
call fcn.004c9c38
mov dword [esp + 0x68], eax
or eax, 0xffffffff
add esp, 4
mov dword [esp + 0x70], eax
mov dword [esp + 0x94], 0
test esi, esi
je 0x496e8b
cmp dword [esp + 0xac], eax
je 0x496e8b
cmp dword [esp + 0xa8], eax
je 0x496e8b
lea eax, [edi*4]
push eax
call fcn.004c9c38
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
je 0x496e8b
and dword [esp + 0xac], 0xffffff
xor ecx, ecx
cmp dword [esp + 0x1c], ecx
jge 0x49683d
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x20], ecx
jge 0x496847
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x24], ecx
jge 0x496851
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x28], ecx
jge 0x49685b
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0xa0]
cmp eax, ecx
jne 0x496881
mov edi, dword [ebx]
lea edx, [esp + 0x74]
mov dword [esp + 0xa0], edx
xor edx, edx
dec edi
mov byte [esp + 0x84], 1
dec ebp
jmp 0x4968c4
cmp byte [eax + 0x10], cl
jne 0x4968af
mov byte [eax + 0x10], 1
cmp dword [eax], ecx
jge 0x496890
mov dword [eax], ecx
cmp dword [eax + 4], ecx
jge 0x496898
mov dword [eax + 4], ecx
mov ecx, dword [ebx]
cmp dword [eax + 8], ecx
jl 0x4968a3
dec ecx
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 4]
cmp dword [eax + 0xc], ecx
jl 0x4968af
dec ecx
mov dword [eax + 0xc], ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [eax + 8]
mov ebp, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x54], ecx
mov ecx, eax
sub ecx, edx
sub eax, ebp
dec ecx
dec eax
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], eax
cmp ecx, eax
jle 0x4968fe
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ecx
cmp byte [esp + 0xbc], 0
je 0x49699b
mov ebp, dword [esp + 0x18]
cmp ebp, dword [esp + 0x30]
jg 0x49699b
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x38]
mov edi, ecx
cmp ecx, eax
jg 0x496994
cmp edi, ecx
je 0x49693c
cmp ebp, dword [esp + 0x18]
je 0x49693c
cmp edi, eax
je 0x49693c
cmp ebp, dword [esp + 0x30]
jne 0x49698f
mov edx, dword [ebx]
imul edx, ebp
add edx, edi
mov edx, dword [esi + edx*4]
cmp edx, dword [esp + 0xac]
je 0x49698f
mov eax, dword [ebx + 4]
push 0
lea ecx, [esp + 0x68]
push ecx
push 0
push 0
push 0
push 0xffffffffffffffff
sub eax, ebp
lea edx, [esp + 0xc4]
push edx
dec eax
push eax
mov eax, dword [esp + 0xc0]
push edi
push ebx
push esi
call fcn.00419630
add esp, 0x2c
test al, al
je 0x496e7e
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x38]
inc edi
cmp edi, eax
jle 0x496928
inc ebp
cmp ebp, dword [esp + 0x30]
jle 0x496922
cmp dword [esp + 0x1c], 0
jg 0x4969bb
cmp dword [esp + 0x20], 0
jg 0x4969bb
cmp dword [esp + 0x24], 0
jg 0x4969bb
cmp dword [esp + 0x28], 0
jle 0x496e79
mov eax, dword [esp + 0xac]
mov ebp, dword [esp + 0xa8]
mov ecx, eax
or ecx, 0xff000000
or eax, 0xfe000000
and ebp, 0xffffff
cmp byte [esp + 0xb0], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0xa8], ebp
je 0x496add
mov edx, ebp
mov dword [esp + 0x34], edx
cmp ebp, 0xffffffff
je 0x496a0e
or ebp, 0xffffffff
mov dword [esp + 0xa8], ebp
cmp dword [esp + 0x1c], 0
mov eax, SysReAllocString
jne 0x496a1e
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x20], 0
jne 0x496a29
mov dword [esp + 0x20], eax
cmp dword [esp + 0x24], 0
mov eax, SysReAllocString
jne 0x496a39
mov dword [esp + 0x24], eax
cmp dword [esp + 0x28], 0
jne 0x496a44
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x60]
test edi, edi
jle 0x496a6d
mov ecx, dword [esp + 0x58]
mov eax, esi
sub ecx, esi
mov byte [eax + 3], 0
mov edx, dword [eax]
or edx, 0xff000000
mov dword [ecx + eax], edx
add eax, 4
dec edi
jne 0x496a54
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0xb4]
cmp eax, 1
jge 0x496cc0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x30]
jg 0x496e60
mov eax, dword [esp + 0x54]
jmp 0x496aa0
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x38]
jg 0x496c25
mov edi, edi
mov eax, dword [ebx]
imul eax, dword [esp + 0x2c]
add eax, dword [esp + 0x18]
mov eax, dword [esi + eax*4]
test eax, 0xff000000
jne 0x496c0e
cmp dword [esp + 0x34], 0xffffffff
je 0x496ae9
xor ecx, ecx
cmp eax, dword [esp + 0x34]
setne cl
mov eax, ecx
jmp 0x496af7
or edx, 0xffffffff
mov dword [esp + 0x34], edx
jmp 0x496a0e
xor edx, edx
cmp eax, dword [esp + 0xa8]
sete dl
mov eax, edx
test eax, eax
je 0x496c0e
mov eax, dword [ebx + 4]
sub eax, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0xc0]
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0xc0]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push ecx
dec eax
lea edx, [esp + 0x54]
push edx
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0xc4]
push ebx
push esi
call fcn.00419630
add esp, 0x2c
test al, al
je 0x496e7e
cmp byte [esp + 0x40], 0
je 0x496c0e
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0xa4]
mov eax, ebp
sub eax, dword [esp + 0x44]
sub ecx, edx
cmp byte [edi + 0x12], 0
je 0x496c3d
cmp byte [edi + 0x10], 0
je 0x496b97
cmp eax, dword [esp + 0x1c]
jl 0x496c83
cmp ecx, dword [esp + 0x20]
jge 0x496ba7
jmp 0x496c83
cmp eax, dword [esp + 0x1c]
jge 0x496ba7
cmp ecx, dword [esp + 0x20]
jl 0x496c83
inc eax
cmp byte [edi + 0x11], 0
je 0x496bbd
cmp eax, dword [esp + 0x24]
jge 0x496c83
jmp 0x496c78
cmp eax, dword [esp + 0x24]
jl 0x496bce
inc ecx
cmp ecx, dword [esp + 0x28]
jge 0x496c83
cmp edx, dword [esp + 0x50]
jg 0x496c0e
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x44]
lea esp, [esp]
cmp ecx, ebp
jg 0x496c07
mov eax, dword [ebx]
mov ebp, dword [esp + 0x3c]
imul eax, edx
add eax, ecx
cmp dword [esi + eax*4], ebp
jne 0x496bfa
mov ebp, dword [edi + eax*4]
mov dword [esi + eax*4], ebp
mov ebp, dword [esp + 0x4c]
inc ecx
cmp ecx, ebp
jle 0x496be4
mov ecx, dword [esp + 0x44]
inc edx
cmp edx, dword [esp + 0x50]
jle 0x496be0
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x38]
jle 0x496ab0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esp + 0x30]
jle 0x496aa0
jmp 0x496e60
cmp byte [edi + 0x10], 0
je 0x496c4b
cmp eax, dword [esp + 0x1c]
jl 0x496c5f
jmp 0x496c55
cmp eax, dword [esp + 0x1c]
jge 0x496bce
cmp ecx, dword [esp + 0x20]
jge 0x496bce
inc eax
cmp byte [edi + 0x11], 0
je 0x496c6e
cmp eax, dword [esp + 0x24]
jge 0x496c83
jmp 0x496c78
cmp eax, dword [esp + 0x24]
jl 0x496bce
inc ecx
cmp ecx, dword [esp + 0x28]
jl 0x496bce
cmp edx, dword [esp + 0x50]
jg 0x496c0e
mov ecx, dword [esp + 0x44]
lea ecx, [ecx]
cmp ecx, ebp
jg 0x496cb4
mov eax, dword [ebx]
imul eax, edx
add eax, ecx
mov edi, dword [esi + eax*4]
cmp edi, dword [esp + 0x3c]
jne 0x496cab
mov edi, dword [esp + 0x5c]
mov dword [esi + eax*4], edi
inc ecx
cmp ecx, ebp
jle 0x496c94
mov ecx, dword [esp + 0x44]
inc edx
cmp edx, dword [esp + 0x50]
jle 0x496c90
jmp 0x496c0e
cmp eax, 0xff
jle 0x496cd3
mov eax, 0xff
mov dword [esp + 0xb4], eax
cmp edx, 0xffffffff
je 0x496cea
mov ecx, edx
shr ecx, 0x10
shr edx, 8
mov byte [esp + 0x11], dl
mov dl, byte [esp + 0x34]
jmp 0x496cff
mov ecx, ebp
mov edx, ebp
shr ecx, 0x10
shr edx, 8
mov byte [esp + 0x11], dl
mov dl, byte [esp + 0xa8]
movzx edi, cl
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], cl
mov dword [esp + 0x2c], edi
cmp eax, edi
jle 0x496d19
mov byte [esp + 0x16], 0
jmp 0x496d23
mov dl, byte [esp + 0x12]
sub cl, al
mov byte [esp + 0x16], cl
mov cl, byte [esp + 0x11]
movzx ebp, cl
cmp eax, ebp
jle 0x496d35
mov byte [esp + 0x14], 0
jmp 0x496d3b
sub cl, al
mov byte [esp + 0x14], cl
movzx edi, dl
cmp eax, edi
jle 0x496d49
mov byte [esp + 0x15], 0
jmp 0x496d51
mov cl, dl
sub cl, al
mov byte [esp + 0x15], cl
mov ecx, 0xff
sub ecx, dword [esp + 0x2c]
cmp eax, ecx
jle 0x496d65
mov byte [esp + 0x13], 0xff
jmp 0x496d6f
mov cl, al
add cl, byte [esp + 0x13]
mov byte [esp + 0x13], cl
mov edx, 0xff
sub edx, ebp
cmp eax, edx
jle 0x496d81
mov byte [esp + 0x11], 0xff
jmp 0x496d8b
mov cl, al
add cl, byte [esp + 0x11]
mov byte [esp + 0x11], cl
mov ecx, 0xff
sub ecx, edi
cmp eax, ecx
jle 0x496d9d
mov byte [esp + 0x12], 0xff
jmp 0x496da5
add al, byte [esp + 0x12]
mov byte [esp + 0x12], al
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x30]
jg 0x496e60
jmp 0x496dc0
mov eax, dword [esp + 0x54]
mov ebp, eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x38]
jg 0x496e4d
mov edx, dword [ebx]
imul edx, dword [esp + 0x2c]
lea eax, [edx + ebp]
test dword [esi + eax*4], 0xff000000
mov cl, byte [esi + eax*4 + 2]
mov dl, byte [esi + eax*4 + 1]
mov bl, byte [esi + eax*4]
jne 0x496e37
mov edi, dword [esp + 0x34]
cmp edi, 0xffffffff
je 0x496ebc
cmp cl, byte [esp + 0x16]
jb 0x496ef8
cmp cl, byte [esp + 0x13]
ja 0x496ef8
cmp dl, byte [esp + 0x14]
jb 0x496ef8
cmp dl, byte [esp + 0x11]
ja 0x496ef8
cmp bl, byte [esp + 0x15]
jb 0x496ef8
cmp bl, byte [esp + 0x12]
ja 0x496ef8
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x18], ebp
cmp ebp, dword [esp + 0x38]
jle 0x496dd0
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x30]
jle 0x496dc0
mov eax, dword [esp + 0x60]
test eax, eax
jle 0x496e79
add esi, 3
jmp 0x496e70
mov byte [esi], 0
add esi, 4
dec eax
jne 0x496e70
mov byte [esp + 0x17], 1
mov edx, dword [esp + 0x58]
push edx
call fcn.004ca991
add esp, 4
cmp dword [esp + 0x64], 0
je 0x496e9f
mov eax, dword [esp + 0x64]
push eax
call fcn.004ca991
add esp, 4
mov ecx, dword [esp + 0x8c]
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x88
ret
cmp cl, byte [esp + 0x16]
jb 0x496e37
cmp cl, byte [esp + 0x13]
ja 0x496e37
cmp dl, byte [esp + 0x14]
jb 0x496e37
cmp dl, byte [esp + 0x11]
ja 0x496e37
cmp bl, byte [esp + 0x15]
jb 0x496e37
cmp bl, byte [esp + 0x12]
ja 0x496e37
mov ebx, dword [esp + 0x9c]
mov eax, dword [ebx + 4]
sub eax, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0xc0]
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0xc0]
push ecx
push edx
push edi
lea ecx, [esp + 0x54]
push ecx
dec eax
push eax
mov eax, dword [esp + 0xc0]
push ebp
push ebx
push esi
call fcn.00419630
add esp, 0x2c
test al, al
je 0x496e7e
cmp byte [esp + 0x40], 0
je 0x496e3e
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0xa4]
mov eax, ebp
sub eax, dword [esp + 0x44]
sub ecx, edx
cmp byte [edi + 0x12], 0
je 0x49700f
cmp byte [edi + 0x10], 0
je 0x496f8f
cmp eax, dword [esp + 0x1c]
jl 0x497045
cmp ecx, dword [esp + 0x20]
jge 0x496f9f
jmp 0x497045
cmp eax, dword [esp + 0x1c]
jge 0x496f9f
cmp ecx, dword [esp + 0x20]
jl 0x497045
inc eax
cmp byte [edi + 0x11], 0
je 0x496fb5
cmp eax, dword [esp + 0x24]
jge 0x497045
jmp 0x49703e
cmp eax, dword [esp + 0x24]
jl 0x496fc6
inc ecx
cmp ecx, dword [esp + 0x28]
jge 0x497045
cmp edx, dword [esp + 0x50]
jg 0x496e3e
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x44]
cmp ecx, ebp
jg 0x497003
lea esp, [esp]
mov eax, dword [ebx]
mov ebp, dword [esp + 0x3c]
imul eax, edx
add eax, ecx
cmp dword [esi + eax*4], ebp
jne 0x496ff6
mov ebp, dword [edi + eax*4]
mov dword [esi + eax*4], ebp
mov ebp, dword [esp + 0x4c]
inc ecx
cmp ecx, ebp
jle 0x496fe0
mov ecx, dword [esp + 0x44]
inc edx
cmp edx, dword [esp + 0x50]
jle 0x496fd8
jmp 0x496e3e
cmp byte [edi + 0x10], 0
je 0x49701d
cmp eax, dword [esp + 0x1c]
jl 0x497029
jmp 0x497023
cmp eax, dword [esp + 0x1c]
jge 0x496fc6
cmp ecx, dword [esp + 0x20]
jge 0x496fc6
inc eax
cmp byte [edi + 0x11], 0
je 0x497038
cmp eax, dword [esp + 0x24]
jge 0x497045
jmp 0x49703e
cmp eax, dword [esp + 0x24]
jl 0x496fc6
inc ecx
cmp ecx, dword [esp + 0x28]
jl 0x496fc6
cmp edx, dword [esp + 0x50]
jg 0x496e3e
mov ecx, dword [esp + 0x44]
cmp ecx, ebp
jg 0x497077
mov eax, dword [ebx]
imul eax, edx
add eax, ecx
mov edi, dword [esi + eax*4]
cmp edi, dword [esp + 0x3c]
jne 0x49706e
mov edi, dword [esp + 0x5c]
mov dword [esi + eax*4], edi
inc ecx
cmp ecx, ebp
jle 0x497057
mov ecx, dword [esp + 0x44]
inc edx
cmp edx, dword [esp + 0x50]
jle 0x497053
jmp 0x496e3e