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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push edi
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10c], 0
mov dword [esp + 0x108], 0x34c7b526
mov dword [esp + 0xf4], 0x5aaff56f
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0x76e602c6
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0x16fd5b8c
lea edx, [esp + 0xb3]
movaps xmm0, xmmword [0x4080e0]
movups xmmword [esp + 0xb3], xmm0
mov byte [esp + 0xc3], 0x64
mov byte [esp + 0xc4], 0x64
mov byte [esp + 0xc5], 0x72
mov byte [esp + 0xc6], 0x65
mov dword [esp + 0x104], 0x7fe0944
mov dword [esp + 0x100], 0xf13b6f3c
mov byte [esp + 0xc7], 0x73
mov byte [esp + 0xc8], 0x73
mov byte [esp + 0xc9], 0
mov byte [esp + 0xca], 0x3b
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], edx
call fcn.00407000
mov ecx, eax
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, eax
add edi, esi
mov ebx, dword [eax + esi]
mov dword [esp + 0x5c], eax
xor eax, eax
sub ebx, 0x4550
cmove eax, edi
mov eax, dword [eax + 0x78]
mov edi, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x58]
add eax, ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
mov eax, dword [ecx + eax + 0x20]
mov ecx, dword [esp + 0x54]
add ecx, 0x72b87deb
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
adc eax, 0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x104], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x100], ecx
mov ecx, dword [esp + 0x4c]
mov edi, dword [ecx + edi + 0x18]
mov dword [esp + 0x7c], 0
cmp edi, 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
je 0x405ce0
jmp 0x405bc9
mov eax, dword [esp + 0x98]
mov dword [esp + 0xa4], eax
mov eax, 0x76a15d83
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, ecx
mov edx, dword [esp + 0x24]
mul edx
mov esi, dword [esp + 0x50]
imul edi, esi, 0x76a15d83
add edx, edi
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], edx
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x68]
mov bl, byte [edx + eax]
mov eax, dword [esp + 0xa4]
add eax, 1
mov dword [esp + 0x98], eax
cmp bl, 0
je 0x405b3d
jmp 0x4059b8
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0xf4]
add ecx, 0xa5500a92
add eax, ecx
mov ecx, dword [esp + 0x94]
add ecx, 2
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x7c], 0
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jb 0x405cec
jmp 0x405ce0
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x34]
add edx, dword [eax + ecx*4]
mov eax, edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x7c], 0
cmp edx, 0
je 0x405ce0
jmp 0x405ba3
mov eax, dword [esp + 0x94]
movzx eax, word [eax]
mov dword [esp + 0x88], eax
mov dword [esp + 0xe4], 0x22c24df3
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0xf0], edx
mov dword [esp + 0xfc], 0x85e9cf6b
mov dword [esp + 0x7c], 0
cmp eax, 0xa065cf8
je 0x405ce0
jmp 0x405a63
lea eax, [esp + 0xd8]
xor ecx, ecx
lea edx, [esp + 0x6c]
mov dword [esp + 0x6c], 0
mov esi, dword [esp + 0x64]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
mov dword [esp + 0x20], ecx
call dword [esp + 0x90]
sub esp, 0x10
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x1c], eax
jmp 0x405d75
mov ax, word [esp + 0xa4]
mov word [esp + 0xd8], ax
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x10c]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xac]
xor ecx, esi
mov word [esp + 0xda], ax
mov byte [esp + 0xfb], 0xff
xor edx, edi
xor ecx, 0x18b294bd
or ecx, edx
mov dword [esp + 0xa0], 0
mov dword [esp + 0x70], 0x3b172fa9
mov dword [esp + 0x18], ecx
jne 0x405c13
jmp 0x405cec
lea eax, [esp + 0xd8]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xdc], eax
mov dword [esp + 0x98], 0
jmp 0x4059b8
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x24]
mov edx, dword [esp + 0x34]
add edx, ecx
mov dword [esp + 0x104], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0xa0], edx
mov dword [esp + 0x70], 0
jmp 0x405cec
test byte [esp + 0xef], 1
jne 0x405a9b
jmp 0x405a1f
movzx eax, word [esp + 0xa4]
mov dword [esp + 0x104], 0x1d8f0123
mov dword [esp + 0x100], 0x688dfac5
mov dword [esp + 0x9c], 0
cmp eax, 0
je 0x405d75
jmp 0x405d36
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x74]
mov dl, byte [esp + ecx + 0xb3]
mov ecx, dword [esp + 0xe8]
mov dh, byte [ecx + eax]
mov byte [esp + 0xd3], dl
cmp dh, byte [esp + 0xd3]
sete dl
and dl, 1
mov byte [esp + 0xef], dl
cmp dh, 0
je 0x405c00
mov eax, 0x5aaff58f
mov ecx, dword [esp + 0x74]
add ecx, 1
sub eax, dword [esp + 0xf4]
cmp byte [esp + 0xd3], 0
setne dl
mov esi, dword [esp + 0x30]
and esi, esi
mov dword [esp + 0xfc], esi
cmp ecx, eax
setb dh
and dl, byte [esp + 0xef]
and dh, dl
mov dword [esp + 0xe0], ecx
test dh, 1
jne 0x405c4a
jmp 0x405c00
mov eax, dword [esp + 0x7c]
lea esp, [ebp - 0xc]
pop edi
pop ebx
pop esi
pop ebp
ret
mov eax, dword [esp + 0xf4]
xor eax, 0x5aaff56f
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
add edx, dword [esi + ecx*4]
mov dword [esp + 0xe8], edx
mov dword [esp + 0xe0], eax
jmp 0x405c4a
lea eax, [esp + 0x6c]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
xor edx, edx
mov esi, 0x4605e507
sub esi, eax
sbb edx, ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
jb 0x405aef
jmp 0x405ce0
mov eax, dword [esp + 0x9c]
mov cl, byte [esp + 0xfb]
or cl, 0x71
mov byte [esp + 0xfb], cl
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x54]
and eax, 0x5aaa292e
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], 0
jmp 0x405ce0