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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
lea edi, [esp + 0x1c]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x10], ecx
mov dword [esp], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], 0x5109a0
mov dword [esp + 0x38], 0x513590
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 0x496e67
mov dword [esp + 0x44], esp
call fcn.004155c0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
mov byte [eax], 0
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x496d6e
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x496da0
mov ecx, eax
mov dword [esp + 0x20], 1
call fcn.0049b530
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
cmp byte [esp + 0x14], 0
jne 0x496d67
test byte [ecx + 0xd], 0x10
je 0x496d67
mov esi, dword [ecx + 0x78]
mov dword [esp + 0x14], esi
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jae 0x496e28
mov esi, dword [ecx + 0x7c]
movzx eax, byte [eax]
mov dword [esp + 0x18], esi
test esi, esi
je 0x496e5a
mov edi, dword [esp + 0x18]
movzx eax, al
mov edx, dword [edi + 0x18]
test byte [edx + eax*2], 0x20
je 0x496d5a
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
cmp eax, edx
jae 0x496dc8
add eax, 1
mov dword [ebx + 8], eax
cmp eax, edx
jae 0x496df0
mov edi, dword [esp + 0x18]
movzx eax, byte [eax]
mov edx, dword [edi + 0x18]
movzx eax, al
test byte [edx + eax*2], 0x20
jne 0x496d27
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x496db8
or eax, 4
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call fcn.005051e0
sub esp, 4
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.00415650
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 8
cmp byte [esp + 0x14], 0
jne 0x496db8
test byte [ecx + 0xd], 0x10
jne 0x496cf2
lea esi, [esi]
mov eax, dword [esp + 0x10]
mov byte [eax], 1
jmp 0x496d84
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x28]
mov dword [esp + 0x20], 1
call eax
cmp eax, 0xffffffff
je 0x496e0c
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
jmp 0x496d3f
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], 1
call eax
cmp eax, 0xffffffff
jne 0x496d17
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
or eax, 2
jmp 0x496d6e
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], 1
call eax
mov esi, dword [esp + 0x70]
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
add ecx, esi
mov esi, dword [ecx + 0x7c]
mov dword [esp + 0x18], esi
test esi, esi
je 0x496e5a
cmp eax, 0xffffffff
jne 0x496d17
jmp 0x496e19
mov dword [esp + 0x20], 1
call fcn.005116a0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x496eb4
mov eax, dword [esp + 0x14]
sub edx, 1
mov dword [esp], eax
jne 0x496ed2
call fcn.00510130
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x70]
mov eax, dword [eax]
add esi, dword [eax - 0xc]
or dword [esi + 0x14], 1
test byte [esi + 0x10], 1
mov dword [esp + 0x20], 2
je 0x496f33
call fcn.005108d0
sub eax, 1
jne 0x496f0d
call fcn.00510370
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call fcn.004159a0
call fcn.00510130
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x70]
mov eax, dword [eax]
add esi, dword [eax - 0xc]
or dword [esi + 0x14], 1
test byte [esi + 0x10], 1
je 0x496efb
mov dword [esp + 0x20], 3
call fcn.005108d0
mov dword [esp + 0x20], 0xffffffff
call fcn.00510370
jmp 0x496d5a
sub eax, 1
jne 0x496f31
xor eax, eax
mov dword [esp + 0x20], eax
call fcn.00510370
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call fcn.004159a0
ud2
call fcn.005108d0
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
lea edi, [esp + 0x1c]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x10], ecx
mov dword [esp], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], 0x5109a0
mov dword [esp + 0x38], 0x513578
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 0x497147
mov dword [esp + 0x44], esp
call fcn.004155c0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
mov byte [eax], 0
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x49704e
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x497080
mov ecx, eax
mov dword [esp + 0x20], 1
call fcn.0049b530
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
cmp byte [esp + 0x14], 0
jne 0x497047
test byte [ecx + 0xd], 0x10
je 0x497047
mov esi, dword [ecx + 0x78]
mov dword [esp + 0x14], esi
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jae 0x497108
mov esi, dword [ecx + 0x7c]
movzx eax, byte [eax]
mov dword [esp + 0x18], esi
test esi, esi
je 0x49713a
mov edi, dword [esp + 0x18]
movzx eax, al
mov edx, dword [edi + 0x18]
test byte [edx + eax*2], 0x20
je 0x49703a
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
cmp eax, edx
jae 0x4970a8
add eax, 1
mov dword [ebx + 8], eax
cmp eax, edx
jae 0x4970d0
mov edi, dword [esp + 0x18]
movzx eax, byte [eax]
mov edx, dword [edi + 0x18]
movzx eax, al
test byte [edx + eax*2], 0x20
jne 0x497007
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x497098
or eax, 4
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call fcn.005051e0
sub esp, 4
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.00415650
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 8
cmp byte [esp + 0x14], 0
jne 0x497098
test byte [ecx + 0xd], 0x10
jne 0x496fd2
lea esi, [esi]
mov eax, dword [esp + 0x10]
mov byte [eax], 1
jmp 0x497064
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x28]
mov dword [esp + 0x20], 1
call eax
cmp eax, 0xffffffff
je 0x4970ec
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
jmp 0x49701f
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], 1
call eax
cmp eax, 0xffffffff
jne 0x496ff7
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
or eax, 2
jmp 0x49704e
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], 1
call eax
mov esi, dword [esp + 0x70]
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
add ecx, esi
mov esi, dword [ecx + 0x7c]
mov dword [esp + 0x18], esi
test esi, esi
je 0x49713a
cmp eax, 0xffffffff
jne 0x496ff7
jmp 0x4970f9
mov dword [esp + 0x20], 1
call fcn.005116a0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x497194
mov eax, dword [esp + 0x14]
sub edx, 1
mov dword [esp], eax
jne 0x4971b2
call fcn.00510130
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x70]
mov eax, dword [eax]
add esi, dword [eax - 0xc]
or dword [esi + 0x14], 1
test byte [esi + 0x10], 1
mov dword [esp + 0x20], 2
je 0x497213
call fcn.005108d0
sub eax, 1
jne 0x4971ed
call fcn.00510370
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call fcn.004159a0
call fcn.00510130
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x70]
mov eax, dword [eax]
add esi, dword [eax - 0xc]
or dword [esi + 0x14], 1
test byte [esi + 0x10], 1
je 0x4971db
mov dword [esp + 0x20], 3
call fcn.005108d0
mov dword [esp + 0x20], 0xffffffff
call fcn.00510370
jmp 0x49703a
sub eax, 1
jne 0x497211
xor eax, eax
mov dword [esp + 0x20], eax
call fcn.00510370
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call fcn.004159a0
ud2
call fcn.005108d0
nop
nop
nop
nop
nop
nop
nop
nop
push esi
push ebx
sub esp, 0x14
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
mov esi, dword [ecx + eax + 0x7c]
test esi, esi
je 0x497294
cmp byte [esi + 0x1c], 0
mov ebx, ecx
je 0x497268
movsx eax, byte [esi + 0x27]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov ecx, ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call 0x4972a0
sub esp, 0xc
add esp, 0x14
pop ebx
pop esi
ret 8
mov ecx, esi
call fcn.00436a30
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov eax, 0xa
cmp edx, 0x436d80
je 0x49723e
mov dword [esp], 0xa
mov ecx, esi
call edx
sub esp, 4
movsx eax, al
jmp 0x49723e
call fcn.005116a0
nop
nop
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
lea esi, [esp + 0x3c]
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x28], ecx
mov dword [esp], esi
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], al
mov dword [esp + 0x54], 0x5109a0
mov dword [esp + 0x58], 0x514c28
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], 0x4976f7
mov dword [esp + 0x64], esp
call fcn.004155c0
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x7f]
mov dword [ebx + 4], 0
mov dword [esp + 4], 1
mov dword [esp], ebx
mov dword [esp + 0x40], 0xffffffff
call fcn.00496c60
sub esp, 8
cmp byte [esp + 0x7f], 0
je 0x497508
movzx eax, byte [esp + 0x1c]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
mov eax, dword [ebx + eax + 0x78]
mov edx, dword [eax + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
cmp edx, eax
jae 0x497610
mov ecx, dword [ebx + 4]
movzx eax, byte [edx]
lea ebx, [ecx + 1]
cmp dword [esp + 0xa4], ebx
jle 0x497490
movsx esi, byte [esp + 0x20]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x34], esi
cmp dword [esp + 0x30], eax
jne 0x497406
jmp 0x4975d1
mov eax, dword [esp + 0x34]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_memchr
test eax, eax
je 0x497530
mov ebx, dword [esp + 0x1c]
mov edi, eax
sub edi, ebx
mov dword [esp + 0x20], edi
jne 0x497530
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add ecx, dword [esi + 4]
mov dword [edi + 8], eax
mov dword [esi + 4], ecx
mov esi, dword [esp + 0x24]
cmp eax, esi
jae 0x497578
movzx eax, byte [eax]
lea ebx, [ecx + 1]
cmp dword [esp + 0xa4], ebx
jle 0x497490
mov edx, dword [edi + 0xc]
cmp dword [esp + 0x30], eax
je 0x4975c0
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x1c]
sub edx, ecx
mov ecx, dword [esp + 0x24]
sub edx, 1
sub ecx, ebx
cmp edx, ecx
cmovle ecx, edx
mov dword [esp + 0x20], ecx
cmp ecx, 1
jg 0x497380
mov ebx, dword [esp + 0xa0]
lea esi, [ebx + 1]
mov byte [ebx], al
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x2c]
add dword [eax + 4], 1
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
cmp eax, edx
jae 0x497690
add eax, 1
mov dword [esi + 8], eax
cmp eax, edx
jae 0x4976b8
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
movzx eax, byte [eax]
mov ecx, dword [ebx + 4]
mov dword [esp + 0xa0], edi
lea ebx, [ecx + 1]
cmp dword [esp + 0xa4], ebx
jg 0x4973ed
lea esi, [esi]
nop
cmp dword [esp + 0x30], eax
je 0x4976eb
mov edi, dword [esp + 0xa4]
test edi, edi
jle 0x4974af
mov eax, dword [esp + 0xa0]
mov byte [eax], 0
mov eax, 4
mov edi, dword [esp + 0x28]
mov edx, dword [edi]
add edi, dword [edx - 0xc]
or eax, dword [edi + 0x14]
mov ecx, edi
mov dword [esp + 0x40], 0xffffffff
mov dword [esp], eax
call fcn.005051e0
sub esp, 4
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.00415650
mov eax, dword [esp + 0x28]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x40], 6
call eax
lea esi, [esi]
mov ecx, dword [esp + 0xa4]
test ecx, ecx
jle 0x49751d
mov eax, dword [esp + 0xa0]
mov byte [eax], 0
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 4]
test edx, edx
jne 0x4974d5
jmp 0x4974af
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 8], eax
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add dword [esp + 0xa0], eax
mov edx, dword [edi + 0xc]
add eax, dword [edi + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
jmp 0x4973b2
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 4
call eax
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 4]
lea ebx, [ecx + 1]
cmp ebx, dword [esp + 0xa4]
jge 0x497652
cmp eax, 0xffffffff
je 0x49765b
mov esi, dword [esp + 0x2c]
mov edx, dword [esi + 0xc]
cmp dword [esp + 0x30], eax
jne 0x4973f7
lea esi, [esi]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
mov edi, edx
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x1c]
cmp eax, edi
jae 0x4974f2
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0xa4]
add eax, 1
mov dword [edi + 8], eax
test esi, esi
jg 0x497513
test ebx, ebx
je 0x4974af
jmp 0x4974d5
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 5
call eax
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + 4]
lea ebx, [ecx + 1]
cmp dword [esp + 0xa4], ebx
jle 0x497652
cmp eax, 0xffffffff
je 0x49765b
mov esi, dword [esp + 0x2c]
mov edi, dword [esi + 8]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 0xc]
mov dword [esp + 0x24], edi
jmp 0x497364
cmp eax, 0xffffffff
jne 0x497490
mov eax, dword [esp + 0xa4]
test eax, eax
jle 0x497670
mov eax, dword [esp + 0xa0]
mov byte [eax], 0
mov eax, dword [esp + 0x28]
mov ebp, dword [eax + 4]
mov eax, 6
test ebp, ebp
je 0x4974b4
mov eax, 2
jmp 0x4974b4
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x28]
mov dword [esp + 0x40], 1
call eax
cmp eax, 0xffffffff
je 0x4976db
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
jmp 0x49745e
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 1
call eax
mov ebx, dword [esp + 0x38]
mov dword [esp + 0xa0], ebx
jmp 0x497589
mov eax, dword [esp + 0x38]
mov dword [esp + 0xa0], eax
jmp 0x49765b
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0xc]
jmp 0x4975c0