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

Disassembly:
sub esp, 0x58
imul ecx, dword [0x4bd5dc], 0xc
mov al, 1
push ebx
mov ebx, dword [esp + 0x64]
mov edx, dword [0x4bd598]
push ebp
movzx ebp, word [0x4bd5c8]
sub al, byte [ebx + 0x2318]
mov byte [esp + 0xb], al
mov eax, dword [0x4bd5b0]
mov dword [esp + 0x24], eax
mov eax, dword [0x4bd5d8]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x74]
push esi
push edi
mov edi, dword [esp + 0x74]
movzx eax, byte [eax + ebp]
and edi, 0xb83
mov dword [esp + 0x1c], eax
mov eax, dword [0x4bd588]
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x18], 0xbda
mov dword [esp + 0x24], edi
mov eax, dword [ecx + eax]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x5c], eax
movzx eax, word [0x4bd5ac]
xor eax, edx
mov dword [esp + 0x38], 0x5bf
mov dword [esp + 0x20], eax
imul eax, dword [0x4bd584], 0xc
mov byte [esp + 0x12], 0xcb
mov ecx, dword [eax + ecx]
mov eax, dword [0x4bd5f0]
add ecx, eax
mov dword [esp + 0x58], ecx
movzx ecx, word [0x4bd5b4]
xor ecx, 0x8af
inc eax
mov dword [0x4bd5f0], eax
mov eax, dword [0x4bd564]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x80]
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x4bd5bc]
mov dword [esp + 0x34], eax
imul eax, dword [0x4bd59c], 0x58f
mov dword [esp + 0x4c], eax
mov eax, dword [0x4bd5e4]
xor eax, dword [0x4bd5b4]
dec ecx
movzx eax, ax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
movzx esi, ax
mov eax, dword [esp + 0x84]
dec eax
mov dword [0x4bd5bc], ecx
sub dword [esp + 0x18], eax
mov dword [esp + 0x84], eax
mov eax, dword [0x4bd570]
mov dword [esp + 0x3c], eax
inc eax
mov dword [0x4bd570], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], esi
movzx eax, byte [eax + ebx]
mov ebx, dword [esp + 0x70]
cmp eax, 0xacf
jbe 0x403f67
mov ecx, dword [edi]
lea eax, [ebp - 0x9c6]
or dword [ebx + ecx*4], eax
mov edx, dword [0x4bd598]
mov ecx, dword [0x4bd5bc]
mov eax, dword [esp + 0x18]
movzx edi, byte [eax + ecx*2]
cmp edi, dword [esp + 0x1c]
jb 0x404126
mov ecx, dword [esp + 0x30]
mov ebp, edi
movzx eax, cx
mov dword [esp + 0x60], eax
mov eax, edi
imul eax, dword [esp + 0x44]
shl ebp, 4
add ebp, dword [esp + 0x80]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
lea eax, [eax + edi*2]
add eax, 0x30
mov dword [esp + 0x80], eax
imul eax, dword [0x4bd5ec], 3
xor edx, edx
mov ecx, dword [esp + 0x18]
push 0x133
push edi
movzx ecx, byte [eax + ecx]
mov eax, esi
div ecx
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
add byte [edi + ecx], al
inc dword [ebx]
inc edx
mov eax, dword [0x4bd594]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x8c], edx
lea esi, [eax + edx*4]
imul eax, dword [ebx], 0xc
xor edx, edx
mov eax, dword [eax + ecx + 0x10]
mov ecx, 0x750
div ecx
mov ecx, dword [esp + 0x64]
mov eax, edx
xor edx, edx
div dword [esi]
mov dword [esi], edx
mov eax, dword [0x4bd584]
mov esi, dword [esp + 0x34]
movzx edx, byte [ecx + eax + 0x17]
mov ecx, edi
mov eax, dword [0x4bd598]
xor ecx, dword [0x4bd5b0]
mov eax, dword [esi + eax*4]
mov esi, dword [esp + 0x30]
and eax, edi
push eax
push dword [esp + 0x6c]
push ecx
push edx
push esi
call fcn.00405208
mov ecx, dword [esp + 0x9c]
add esp, 0x1c
mov word [ecx], ax
mov eax, dword [0x4bd584]
mov ecx, dword [esp + 0x20]
movzx eax, word [ecx + eax*2]
movzx ecx, byte [esp + 0x12]
mov dword [ebp], eax
cmp ecx, dword [esp + 0x88]
jae 0x4040fa
mov edx, dword [esp + 0x2c]
movzx ebx, byte [esp + 0x13]
add edx, 0x2c
imul eax, ecx, 0xc
add ebx, ecx
add edx, eax
mov eax, dword [esp + 0x88]
sub eax, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x64], eax
mov esi, eax
mov eax, dword [edx]
mov ecx, dword [0x4bd564]
or eax, ebx
sub eax, ecx
mov byte [esp + 0x12], cl
mov dword [0x4bd564], eax
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x94]
movzx ecx, word [eax]
movzx eax, word [0x4bd5b4]
cdq
idiv edi
mov eax, edx
cdq
idiv dword [ebp + ecx*4]
sub edx, dword [esp + 0x1c]
add edx, dword [0x4bd580]
inc word [0x4bd5b4]
inc ebx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x40]
add edx, 0xc
mov dword [esp + 0x40], edx
sub esi, 1
jne 0x404094
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x28]
add esi, dword [esp + 0x44]
inc edi
add dword [esp + 0x80], 2
add ebp, 0x10
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x48], ebp
cmp edi, dword [esp + 0x1c]
jae 0x403fb0
mov edx, dword [0x4bd598]
mov eax, dword [esp + 0x30]
cmp word [0x4bd568], ax
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x4c]
ja 0x404143
cmp eax, dword [ebx + 0x3818]
jae 0x4041a6
mov ecx, dword [esi]
inc eax
cmp dword [ebp + ecx*4], eax
jb 0x4041a6
mov ecx, dword [0x4bd56c]
inc edx
mov edi, dword [esp + 0x2c]
imul eax, ecx, 0xc
mov dword [0x4bd598], edx
mov eax, dword [eax + ebp]
cmp eax, dword [edi + edx*4 + 0x58]
je 0x4041a6
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x94]
mov eax, dword [eax]
mov eax, dword [edx + eax*4 + 0x74]
xor edx, edx
imul eax, ecx
movzx ecx, byte [esp + 0x12]
div dword [esp + 0x74]
xor edx, edx
div ecx
mov edx, dword [0x4bd5d0]
mov ecx, dword [esi + 0x12ec]
mov byte [esp + 0x12], al
mov eax, dword [esp + 0x50]
dec eax
add ecx, eax
xor dword [ebx + edx*4], ecx
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x58]
inc esi
movzx eax, si
mov dword [esp + 0x60], eax
mov eax, dword [0x4bd5d0]
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
mov eax, dword [eax]
movzx ecx, word [ecx + eax*4 + 6]
mov eax, dword [0x4bd5e4]
cdq
idiv ecx
mov ecx, dword [esp + 0x18]
xor edx, dword [esp + 0x84]
movzx eax, si
movzx eax, byte [eax + ecx]
or eax, edx
xor edx, edx
div dword [edi]
mov dword [edi], eax
inc dword [0x4bd5e4]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
imul esi, dword [eax], 0xc
mov eax, dword [0x4bd594]
mov eax, dword [eax + ecx*4]
cdq
idiv dword [0x4bd5cc]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x24]
imul edx, dword [ebp + eax*4 + 0x40]
imul edx, dword [esi + ebx]
mov dword [esi + ebx], edx
mov edi, dword [0x4bd5cc]
mov eax, dword [0x4bd584]
inc edi
mov dword [0x4bd5cc], edi
cmp edi, dword [ecx + eax*4 + 0x18]
jae 0x404476
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x90]
movzx ecx, cx
xor ecx, 0x1238
sub dword [esp + 0x34], ebp
mov dword [esp + 0x64], ecx
movzx ecx, byte [esp + 0x13]
mov esi, ecx
mov dword [esp + 0x6c], ecx
mov ecx, edi
imul esi, edi
shl ecx, 4
mov dword [esp + 0x80], ecx
lea ecx, [edx + edi*4]
mov dword [esp + 0x88], ecx
imul ecx, edi, 0xc
mov dword [esp + 0x74], esi
add ecx, dword [esp + 0x58]
mov dword [esp + 0x70], ecx
mov ecx, ebp
sub ecx, edx
sub dword [esp + 0x3c], edx
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x20]
dec eax
mov dword [0x4bd584], eax
xor edx, edx
mov eax, dword [esp + 0x84]
dec eax
movzx ecx, word [ecx + edi*2]
mov dword [esp + 0x84], eax
div ecx
xor edx, edx
mov ecx, dword [esp + 0x88]
div dword [0x4bd598]
mov edx, dword [esp + 0x34]
sub eax, dword [ecx]
sub eax, edi
mov dword [ecx], eax
mov eax, dword [0x4bd574]
add ecx, dword [esp + 0x90]
mov dword [esp + 0x5c], ecx
mov eax, dword [eax + edi*4]
xor eax, dword [ebp + 0x1424]
imul eax, dword [ecx + edx]
mov ecx, dword [esp + 0x7c]
sub eax, dword [esp + 0x38]
and dword [0x4bd5e4], eax
mov eax, dword [esp + 0x70]
push dword [eax]
mov eax, edi
cdq
idiv dword [esp + 0x70]
mov eax, dword [0x4bd598]
push edx
movzx eax, byte [eax + ecx]
or eax, edi
push eax
push dword [esp + 0x70]
call fcn.00405dc1
mov eax, dword [esp + 0x30]
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor edx, edx
inc word [eax]
mov ax, word [eax]
movzx eax, ax
mov eax, dword [ecx + eax*4 + 0xc]
div dword [esp + 0x8c]
mov edx, dword [esp + 0x80]
and dword [0x4bd5b0], eax
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax]
mov eax, dword [0x4bd5b8]
mov eax, dword [edx + eax]
or dword [ebp + ecx*4 + 0x98], eax
mov ecx, dword [0x4bd5dc]
mov eax, ecx
sub eax, dword [0x4bd57c]
dec ecx
mov word [0x4bd57c], ax
mov eax, dword [0x4bd5c4]
mov dword [0x4bd5dc], ecx
movzx eax, word [eax + edi*2]
cmp dword [0x4bd5e4], eax
jle 0x404445
inc word [0x4bd5ac]
mov eax, dword [esp + 0x60]
movzx ecx, word [0x4bd5c8]
inc eax
movzx esi, ax
mov eax, esi
mov ebp, dword [esp + 0x14]
cdq
idiv dword [ebx + ecx*4 + 4]
mov eax, dword [esp + 0x14]
add dword [esp + 0x14], 4
mov ecx, dword [eax]
mov eax, edx
add ecx, ecx
xor edx, edx
div dword [ebp + ecx*8]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x88]
imul edx, dword [esp + 0x38]
movzx eax, al
and ax, si
movzx esi, byte [esp + 0x12]
mov word [0x4bd590], ax
mov eax, edi
xor eax, 0x1914
sub eax, dword [ecx]
mov dword [ecx], eax
mov eax, edi
push dword [ebp]
sub eax, dword [0x4bd580]
movzx eax, ax
push eax
mov dword [esp + 0x40], edx
mov eax, edi
cdq
idiv esi
movzx ecx, word [0x4bd5c8]
push ecx
push dword [esp + 0x80]
push eax
push 0x1242
push esi
call fcn.00405208
mov ecx, dword [esp + 0x58]
add esp, 0x1c
mov esi, dword [esp + 0x74]
mov dword [ecx + ebp], eax
mov ebp, dword [esp + 0x78]
mov eax, dword [0x4bd584]
inc edi
mov ecx, dword [esp + 0x24]
add esi, dword [esp + 0x6c]
add dword [esp + 0x70], 0xc
add dword [esp + 0x80], 0x10
add dword [esp + 0x88], 4
mov dword [esp + 0x74], esi
cmp edi, dword [ecx + eax*4 + 0x18]
jb 0x40429e
mov ecx, dword [esp + 0x94]
dec eax
mov dword [0x4bd584], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, dword [eax]
pop ebx
mov eax, dword [ecx + eax*4 + 0x4c]
add esp, 0x58
ret