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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
movzx ebx, byte [edx + 0xd]
mov esi, dword [ebp + 0x14]
xor eax, eax
cmp bl, 3
cmovne eax, ebx
cmp al, 1
je 0x4939ca
movzx eax, al
cmp eax, 2
je 0x4939d0
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
test esi, esi
je 0x4939dc
mov ecx, dword [ebp + 0x10]
call fcn.0049533a
mov ebx, eax
mov edi, edx
add eax, 8
push dword [ebp + 0x10]
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x4939de
cmp dword [ebp + 8], 0
je 0x49399d
push esi
call fcn.00490a88
pop eax
jmp 0x493cb6
xor ebx, ebx
mov eax, dword [esp + 4]
mov edx, 0x647d4c
lea ecx, [eax + 0x20]
mov dword [esp + 0x18], ecx
call fcn.0049402b
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edi
mov dword [esp + 8], edx
mov esi, eax
mov edi, dword [eax + 4]
mov ecx, dword [eax]
mov edx, edi
call fcn.00495396
mov eax, dword [ebp + 8]
cmp eax, 0x7ffffffe
jbe 0x493a3d
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0x28
mov dword [esp + 0x3c], eax
call fcn.0048f0af
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
jmp 0x493ae0
mov edx, dword [esi + 0x30]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0xc]
mov eax, edi
sub eax, edx
jb 0x493a9a
mov dword [esp + 0x1c], edi
lea edi, [esp + 0x78]
mov ebx, esi
and dword [edi], 0
add ebx, 0x28
mov dword [edi + 4], eax
mov byte [edi + 8], 0
mov ecx, edi
call fcn.00426ae5
test eax, eax
je 0x493a8f
and dword [esp + 0x28], 0
mov dword [esp + 0x2c], 4
and dword [esp + 0x30], 0
mov ecx, ebx
lea edx, [esp + 0x28]
call fcn.004953b2
jmp 0x493a65
mov edx, dword [esi + 0x30]
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x2c]
push 0x647ab8
push edi
call fcn.0042698a
pop ecx
pop edx
mov ecx, dword [ebp + 8]
cmp dword [eax + 8], ecx
jbe 0x493ae9
lea eax, [esp + 0x28]
mov edx, esi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
and dword [eax + 0xc], 0
mov dword [eax], 4
lea ecx, [esp + 0x38]
push eax
call fcn.004950b3
pop eax
lea ecx, [esp + 0x20]
call fcn.0048f0af
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
jmp 0x493b7e
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
push 0x647ac8
mov ebx, edi
push edi
call fcn.0042698a
pop ecx
pop edx
mov edi, dword [ebp + 8]
sub edi, dword [eax + 8]
sub edi, 1
jb 0x493b2b
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
push 0x647ae8
push ebx
call fcn.0042698a
pop ecx
pop edx
sub esp, 4
mov ecx, eax
xor edx, edx
call fcn.004953ec
pop eax
jmp 0x493b04
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
push 0x647ad8
push ebx
call fcn.0042698a
pop ecx
pop edx
mov edx, dword [esp + 0x10]
mov ecx, eax
push dword [esp + 0x14]
call fcn.004953ec
pop eax
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x28]
mov edx, esi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
and dword [eax + 0xc], 0
mov dword [eax], 4
lea ecx, [esp + 0x38]
push eax
call fcn.004950b3
pop eax
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
inc dword [eax]
mov eax, dword [esp + 0x38]
cmp eax, 0x2a
jne 0x493ca2
lea esi, [esp + 0x38]
mov edi, dword [esi + 4]
mov ecx, esi
push dword [ebp + 0x14]
call fcn.00490a88
pop eax
mov eax, dword [esi]
cmp eax, 0x2a
jne 0x493bf1
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov edx, 0x647d5c
mov dword [esp + 8], edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
call fcn.0049402b
mov ebx, dword [eax + 4]
mov ecx, dword [eax]
mov edi, edx
mov esi, eax
mov edx, ebx
call fcn.00495396
mov ecx, dword [ebp + 8]
cmp ecx, 0x7ffffffe
jbe 0x493c18
mov dword [esp + 0x38], 0x28
mov dword [esp + 0x3c], ecx
jmp 0x493c39
lea esi, [esp + 0x44]
lea edi, [ebx + 0xc]
mov ecx, dword [esi - 4]
mov edx, dword [esi - 8]
mov dword [esp + 4], ecx
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [esp + 4]
mov dword [ebx + 8], eax
jmp 0x493cb6
lea eax, [esp + 0x28]
mov edx, esi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
and dword [eax + 0xc], 0
mov dword [eax], 5
lea ecx, [esp + 0x38]
push eax
call fcn.004950b3
pop eax
inc dword [edi]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
cmp eax, 0x2a
jne 0x493ca2
lea esi, [esp + 0x38]
mov edi, dword [esp + 4]
mov eax, dword [esi + 4]
mov ecx, esi
mov edx, edi
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
push dword [esp + 0xc]
call fcn.00493270
pop eax
pop ecx
mov eax, dword [esi]
cmp eax, 0x2a
jne 0x493cbe
mov edx, edi
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x38]
mov ecx, esi
push edi
push dword [esp + 0x14]
call fcn.00493270
pop eax
pop ecx
mov eax, dword [esi]
cmp eax, 0x2a
jne 0x493cbe
mov eax, dword [esp + 8]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
mov dword [ebx], 0x2a
jmp 0x493cb6
lea esi, [esp + 0x40]
lea edi, [ebx + 8]
mov edx, dword [esi - 4]
push 0xe
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [esp + 0x3c]
lea edi, [ebx + 4]
push 0xf
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], eax
jmp 0x493cb6