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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], edx
xor ecx, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], ecx
mov esi, dword [edi + 8]
mov eax, dword [edi]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x49a03c
cmp dword [edi + 0x74], ecx
jne 0x49a02f
test byte [eax + 0x4c], 8
jne 0x49a02f
mov byte [edi + 0x17], 1
mov ecx, edi
call fcn.0046a6e0
mov esi, eax
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0x1c], 0
jge 0x49a09e
mov edx, dword [ebp + 0x10]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x24], ecx
movzx edx, byte [edx + 0x18]
cmp dword [esi + 0x70], ecx
jg 0x49a06f
push 0
push 0
push edx
mov edx, 0x2f
mov ecx, esi
call fcn.0046aa40
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x49a09e
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x2f
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp dword [eax + 0x14], esi
jle 0x49a161
nop dword [eax]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x49a0c0
mov eax, dword [eax + 4]
movzx eax, word [eax + esi*2]
jmp 0x49a0c3
or eax, 0xffffffff
mov edx, dword [ebp + 8]
mov ecx, edi
push eax
push dword [ebp + 0x18]
call fcn.00499f40
mov edx, dword [ebp + 0x10]
add esp, 8
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x49a0e8
movzx ecx, word [eax + esi*4]
jmp 0x49a0ec
movzx ecx, word [edx + 0x24]
movsx eax, cx
lea ecx, [eax + eax*4]
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x30], eax
test eax, eax
je 0x49a113
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49a105
sub eax, edx
and eax, 0x3fffffff
mov ecx, dword [esp + 0x20]
mov edx, 0x3b
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push 0
push eax
call fcn.00480f70
push eax
push dword [esp + 0x34]
mov edx, 0x35
mov ecx, edi
call fcn.00481130
mov edx, dword [esp + 0x24]
mov ecx, edi
push eax
call fcn.00481240
mov ecx, eax
inc esi
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov dword [esp + 0x14], ecx
cmp esi, dword [eax + 0x14]
jl 0x49a0b0
jmp 0x49a163
xor ecx, ecx
mov edx, dword [ebp + 8]
cmp edx, dword [eax]
jne 0x49a35b
cmp dword [ebp + 0x1c], 0
jle 0x49a35b
test byte [edx + 0x24], 0x80
jne 0x49a21b
mov ecx, dword [edi]
lea eax, [esp + 0x30]
push 0
push eax
mov edx, 0xad
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call fcn.00480f70
mov esi, eax
add esp, 8
test esi, esi
je 0x49a1b8
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x1c], eax
mov byte [esi + 1], 0x44
mov eax, dword [esp + 0x2c]
mov edx, 0xa4
mov ecx, dword [esp + 0x20]
push 0
mov dword [esp + 0x34], 0
mov eax, dword [eax + 0x34]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x3c], 0
call fcn.00480f70
add esp, 8
test eax, eax
je 0x49a203
mov ecx, dword [ebp + 8]
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x1c], ecx
or ecx, 0xffffffff
mov word [eax + 0x20], cx
push eax
push esi
mov edx, 0x34
mov ecx, edi
call fcn.00481130
add esp, 8
mov esi, eax
jmp 0x49a346
mov eax, dword [ebp + 0xc]
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], ecx
cmp si, word [eax + 0x32]
jae 0x49a2dd
nop dword [eax + eax]
mov eax, dword [eax + 4]
movzx esi, word [eax + ecx*2]
mov ecx, edi
push esi
push dword [ebp + 0x18]
call fcn.00499f40
movsx ecx, si
add esp, 8
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
lea edx, [ecx + ecx*4]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + edx*4]
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x49a282
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49a273
sub ecx, edx
and ecx, 0x3fffffff
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x20]
mov edx, 0x3b
push 0
push eax
call fcn.00480f70
push eax
push dword [esp + 0x3c]
mov edx, 0x2d
mov ecx, edi
call fcn.00481130
mov edx, dword [esp + 0x28]
mov ecx, edi
push eax
call fcn.00481240
mov ecx, dword [esp + 0x3c]
add esp, 0x14
mov edx, dword [ebp + 8]
inc ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], ecx
movzx eax, word [eax + 0x32]
cmp ecx, eax
mov eax, dword [ebp + 0xc]
jl 0x49a240
mov ecx, dword [edi]
push 0
push 0x34
call fcn.0044ba80
mov esi, eax
add esp, 8
test esi, esi
je 0x49a335
push 0x34
push 0
push esi
call fcn.0059d550
add esp, 0xc
mov byte [esi], 0x13
or eax, 0xffffffff
mov edx, esi
mov word [esi + 0x22], ax
mov ecx, dword [edi]
push 0
push dword [esp + 0x1c]
call fcn.004810c0
mov eax, dword [edi]
add esp, 8
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x49a346
push eax
push str.SCopy
push edi
call fcn.0044ed00
add esp, 0xc
jmp 0x49a346
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49a346
mov ecx, dword [edi]
mov edx, eax
call fcn.00481520
mov edx, dword [esp + 0x14]
mov ecx, edi
push esi
call fcn.00481240
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x2c]
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
mov edx, ecx
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
call fcn.00480140
cmp dword [edi + 0x24], 0
jne 0x49a40c
push 0
push 0
push 0
push 0
push dword [esp + 0x24]
mov edx, esi
mov ecx, edi
call fcn.004c23c0
mov edi, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov ecx, dword [edi + 0x6c]
movzx edx, byte [eax + 0x18]
cmp dword [edi + 0x70], ecx
jg 0x49a3cd
push 0
push dword [ebp + 0x1c]
mov ecx, edi
push edx
mov edx, 0x95
call fcn.0046aa40
add esp, 0xc
jmp 0x49a3ff
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x1c]
mov dword [eax + ecx*4], 0x95
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test esi, esi
je 0x49a410
mov ecx, esi
call fcn.004c2ec0
jmp 0x49a410
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49a423
mov ecx, dword [esp + 0x20]
mov edx, eax
call fcn.00481520
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x49a466
mov edx, dword [edi + 0x6c]
lea eax, [edx - 1]
cmp ecx, eax
jne 0x49a43e
mov dword [edi + 0x6c], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test ecx, ecx
cmovs ecx, eax
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x49a459
mov eax, 0x657384
mov dword [eax + 8], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret