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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], 0x414340
mov dword [esp], 0x4138e0
call fcn.0040f4bc
mov edx, 0x414900
mov ecx, 0x8d
movzx eax, word [edx]
add edx, 2
test ax, ax
je 0x405ea9
add ecx, eax
cmp ecx, 0x5e2
jbe 0x405e8a
add dword [0x411f40], 0x546ec872
mov esi, dword [0x411f40]
xor edi, edi
mov dword [ebp - 0x24], edi
mov eax, esi
sub esi, 0x7adeb6da
and eax, 0x9fb342ba
and esi, 0x60a94b0e
mov dword [ebp - 0x30], eax
call fcn.0040dabc
mov eax, dword [ebp - 0x30]
mov dword [0x411f90], esi
mov dword [0x412158], 0x2ea1dc26
lea edi, [eax + 0x3b5cc923]
mov dword [0x411f40], edi
mov dword [esp + 4], 0x414620
mov dword [esp], 0x414820
call fcn.0040e9f0
xor eax, eax
cmp dword [ebp + 0xc], 0
mov dword [0x412230], 0xee4441d4
mov dword [0x411fac], 0x96dcf6ba
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
je 0x405f28
test ebx, ebx
jne 0x405f2f
xor eax, eax
jmp 0x406154
mov edx, dword [ebx + 0x3c]
add edx, ebx
mov dword [ebp - 0x2c], edx
call fcn.0040dabc
mov eax, esi
sub esi, 0x4858333d
mov dword [0x412158], 0x3eaf5ddc
xor eax, 0xd4a3c557
and eax, 0x3379e1d8
mov dword [0x411fac], eax
mov dword [esp + 4], 0x414620
mov dword [esp], 0x414900
call fcn.0040f4bc
mov edx, dword [ebp - 0x2c]
mov eax, ebx
mov ecx, 0x2af
mov dword [0x412230], esi
add eax, dword [edx + 0x78]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 0x7c]
mov edx, 0x414820
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x3c], eax
movzx eax, word [edx]
add edx, 2
test ax, ax
je 0x405fbc
add ecx, eax
cmp ecx, 0x66c
jbe 0x405f9b
xor edi, 0xcdc9b790
mov dword [0x412230], edi
mov dword [0x411f90], 0xe3620e2b
mov eax, dword [ebp - 0x30]
xor esi, esi
add eax, 0x17ed94db
mov dword [ebp - 0x30], eax
mov dword [0x412018], eax
mov dword [esp + 4], 0x414620
mov dword [esp], 0x413800
call fcn.0040f4bc
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
cmp esi, dword [eax + 0x18]
jae 0x405f28
mov eax, dword [0x412230]
xor ecx, ecx
and eax, 0x89f93db6
mov dword [ebp - 0x34], eax
mov dword [0x411f40], eax
mov eax, dword [ebp - 0x3c]
add eax, ebx
mov edi, dword [eax + esi*4]
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
add edi, ebx
mov dword [esp], edi
call fcn.00404d00
cmp eax, dword [ebp + 0xc]
jne 0x40614e
mov edx, 0x414d20
mov ecx, 0xf88
movzx eax, word [edx]
add edx, 2
test ax, ax
je 0x40606e
add ecx, eax
cmp ecx, 0x10d1
jbe 0x40604f
mov dword [0x412158], 0xfde3dac8
mov edx, dword [ebp - 0x34]
imul eax, dword [ebp - 0x30], 0xd0a304a6
add esi, esi
add esi, ebx
xor edx, 0xdfadfc79
mov dword [0x412230], edx
mov dword [ebp - 0x34], edx
mov dword [0x411f90], eax
mov dword [esp + 4], 0x414340
mov dword [esp], 0x414798
call fcn.0040e9f0
mov edx, dword [ebp - 0x34]
add edx, 0x373d518f
mov dword [0x412018], edx
mov dword [esp + 4], 0x414340
mov dword [esp], 0x414900
call fcn.0040e9f0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
movzx eax, word [esi + eax]
lea eax, [ebx + eax*4]
mov edx, dword [eax + ecx]
mov eax, dword [ebp - 0x2c]
add edx, ebx
mov dword [ebp - 0x24], edx
cmp edx, eax
jae 0x4060e8
mov eax, dword [ebp - 0x24]
jmp 0x406154
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
add eax, ebx
add eax, ecx
cmp edx, eax
jae 0x4060e3
mov dword [esp], edi
call fcn.0040c848
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x20], ax
inc eax
mov word [ebp - 0x1e], ax
mov eax, dword [0x412158]
or eax, 0x7f9f8e87
mov dword [0x412230], eax
mov eax, dword [0x410be0]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x405f28
lea edx, [ebp - 0x24]
mov dword [esp], ebx
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
lea edx, [ebp - 0x20]
mov dword [esp + 4], edx
call eax
sub esp, 0x10
test eax, eax
jns 0x4060e3
jmp 0x405f28
inc esi
jmp 0x405ffe
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret