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

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4bd5b0]
xor edx, edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [0x4bd598]
mov dword [esp + 0x1c], eax
mov eax, dword [0x4bd56c]
push ebx
mov ebx, dword [0x4bd5bc]
mov byte [esp + 6], cl
push ebp
mov dword [esp + 0x18], ecx
inc ecx
push esi
mov byte [esp + 0xf], cl
inc ecx
push edi
mov edi, dword [esp + 0x48]
mov ebp, dword [0x4bd570]
mov dword [esp + 0x28], ebp
movzx eax, word [edi + eax*4 + 0x2a]
sub eax, ecx
inc ecx
mov dword [esp + 0x24], eax
dec ebx
mov dword [esp + 0x40], ecx
movzx ecx, byte [0x4bd590]
mov dword [0x4bd5bc], ebx
movzx eax, bl
imul ecx, eax
mov eax, dword [0x4bd584]
mov esi, eax
or eax, ebx
shl esi, 4
mov ebx, dword [esp + 0x44]
add esi, dword [0x4bd58c]
mov dword [esp + 0x14], ecx
movzx ecx, byte [esp + 0x13]
add eax, dword [ebx + 0x74c4]
div ecx
mov eax, edx
xor edx, edx
div dword [esi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [0x4bd5b0]
mov esi, dword [0x4bd5d0]
movzx ecx, word [edi + eax*2 + 0x10]
mov eax, dword [0x4bd56c]
cdq
idiv ecx
mov ecx, dword [esp + 0x14]
movzx eax, cl
dec cl
mov dword [esp + 0x34], eax
mov eax, dword [0x4bd584]
mov dword [esp + 0x14], ecx
movzx ecx, word [edi]
mov edi, dword [esi*8 + 0x1042]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp + 0x4ed8]
mov ebp, dword [esp + 0x40]
add edi, dword [0x5c6]
mov ebx, dword [ebx + ecx*4]
mov dword [esp + 0x30], eax
mov eax, dword [0x4bd574]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x48]
sub ebp, dword [eax + ecx*4]
mov eax, dword [0x4bd598]
movzx ecx, ax
dec eax
mov dword [0x4bd598], eax
mov al, byte [esp + 0x12]
inc al
mov byte [esp + 0x12], al
movzx eax, al
mov dword [esp + 0x1c], eax
movzx eax, word [edx + eax*4 + 6]
cdq
idiv esi
inc esi
mov dword [0x4bd5d0], esi
push dword [0x77aa]
push eax
push ecx
push 0x15cc
push edi
push ebx
push ebp
push dword [esp + 0x4c]
push dword [esp + 0x54]
push dword [esp + 0x5c]
call fcn.00404941
mov ecx, dword [esp + 0x44]
add esp, 0x28
mov byte [ecx + 0x19d0], al
mov eax, 0x17b6
cmp word [0x4bd5ac], ax
je 0x414565
mov eax, 0x4a5
movzx ebp, word [0x4bd5c8]
cdq
mov esi, 0x1da2
idiv dword [0x4bd5e4]
mov dx, word [0x4bd5ac]
mov ebx, eax
movzx ecx, dx
mov eax, dword [esp + 0x48]
inc dx
movzx edi, word [eax + ecx*8]
mov word [0x4bd5ac], dx
movzx ecx, word [eax]
mov eax, dword [esp + 0x18]
add ecx, ecx
movzx edx, dx
sub esi, dword [eax + ecx*8]
mov eax, dword [esp + 0x24]
push dword [edx*4 + 0x103e]
movzx ecx, word [0x4bd5cc]
movzx eax, byte [eax + 0x1ef0]
imul eax, dword [0x4bd56c]
push eax
push ecx
push edx
push esi
push 0x1d1a
push edi
push dword [0x4bd5a4]
push ebx
push ebp
call fcn.00404941
mov ebx, dword [esp + 0x70]
add esp, 0x28
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
movzx edx, byte [esp + 0x12]
movzx ecx, word [ebx]
mov ebp, dword [esp + 0x2c]
mov dword [edi + ecx*4 + 0x18], eax
inc word [ebx]
or dx, word [0x4bd590]
mov eax, dword [0x4bd5dc]
sub dx, word [esi + eax*8]
movzx eax, word [ebx]
mov word [ebx + eax*2 + 0x4c], dx
movzx eax, word [0x4bd5ac]
mov eax, dword [ebp + eax*8]
cdq
idiv dword [esi + 0x7468]
mov eax, dword [esp + 0x1c]
or dx, word [ebx + eax*8 + 4]
mov eax, dword [esp + 0x14]
movzx eax, al
xor dx, ax
imul eax, dword [0x4bd584], 6
mov word [eax + ebx], dx
jmp 0x414575
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x2c]
mov al, byte [esp + 0x12]
inc al
mov edx, dword [esp + 0x44]
movzx ecx, al
mov byte [esp + 0x12], al
mov eax, ecx
add eax, eax
mov eax, dword [ebp + eax*8 + 0x14]
mov dword [edx + ecx*8 + 0xc], eax
movzx eax, word [ebx]
mov ebp, dword [esp + 0x18]
lea ecx, [edx + eax*4]
mov eax, dword [0x4bd5d0]
add eax, eax
imul eax, dword [edx + eax*8], 0x1d1a
xor edx, edx
add eax, 0x1644
xor eax, dword [0x4bd5c0]
div dword [ecx + 0x68]
mov dword [ecx + 0x68], eax
mov al, byte [esp + 0x12]
inc al
movzx ecx, al
movzx eax, word [ebx]
mov dword [esp + 0x1c], ecx
movzx eax, word [eax + eax + 0xc8c]
cdq
idiv dword [edi + ecx*4 + 0x18]
movzx eax, word [0x4bd5ac]
sub edx, dword [0x4bd564]
add edx, dword [0x4bd5cc]
inc eax
mov ecx, dword [esp + 0x24]
imul eax, eax, 0xc
mov dword [0x4bd564], edx
movzx ecx, byte [ecx + 0x10ff]
xor ecx, dword [eax + esi]
mov eax, 0xffff
add word [ebx], ax
movzx eax, word [ebx]
mov esi, dword [0x4bd56c]
add eax, eax
mov dword [esp + 0x38], ecx
mov ebp, dword [ebp + eax*8]
mov eax, dword [0x4bd5b8]
mov ebx, dword [eax + esi*4]
mov eax, dword [esp + 0x1c]
mov ecx, eax
shl ecx, 2
mov dword [esp + 0x34], ecx
mov edi, dword [ecx + 0x82]
movzx edx, word [ecx + 0xc8c]
add edi, eax
sub eax, dword [0x8847]
xor edx, dword [0x43de]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
movzx ecx, word [ecx + eax]
mov eax, esi
shl eax, 4
xor ecx, 0x9af
mov eax, dword [eax + 0x9a]
and eax, dword [esp + 0x40]
inc esi
push eax
push ecx
push dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
push edx
push ecx
push edi
push ebx
push ebp
push 0x1e99
push dword [esp + 0x5c]
mov dword [0x4bd56c], esi
call fcn.004129f7
mov esi, dword [0x4bd5c4]
mov dword [0x4bd598], eax
mov eax, dword [esp + 0x70]
movzx ebp, word [eax]
movzx ecx, word [esi + 0xe8c8]
xor edx, edx
mov eax, 0x5a0
mov ebx, dword [0x4bd59c]
div ecx
movzx edi, word [esi + ebx*2]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x48]
imul ecx, ebp, 0xc
xor edi, dword [0x4bd5dc]
push 0x7e4
mov esi, dword [ecx + eax + 0x44]
mov eax, dword [0x4bd5bc]
movzx ecx, word [edx + eax*2]
xor edx, edx
mov eax, 0x368
div ecx
push eax
movzx eax, word [0x4bd568]
push esi
push ebx
push edi
push eax
push dword [esp + 0x78]
movzx eax, word [ebp + ebp + 0xc8c]
push dword [0x8843]
push dword [0x84be]
push eax
call fcn.004129f7
mov edi, dword [esp + 0x94]
add esp, 0x50
mov ecx, dword [esp + 0x34]
mov dword [ecx + edi], eax
mov eax, dword [0x4bd5bc]
movzx ebp, word [0x4bd5ac]
dec eax
mov dword [0x4bd5bc], eax
cmp dword [edi + eax*8 + 0x9c], ebp
je 0x414760
mov eax, dword [0x4bd584]
movzx eax, word [eax*4 + 0xc8c]
cmp dword [0x4bd5ec], eax
ja 0x4148b7
mov eax, dword [esp + 0x18]
xor edx, edx
mov ecx, dword [0x4bd58c]
movzx ebx, word [0x4bd57c]
mov ebp, dword [eax + ebp*8 + 0x58]
mov eax, dword [esp + 0x48]
movzx eax, word [eax]
imul eax, eax, 0xc
mov eax, dword [eax + edi]
div dword [ecx + 0x1d190]
mov edx, dword [edi + 0xe8cc]
imul edx, dword [0x4bd5c0]
mov esi, eax
mov ax, word [0x4bd5ac]
inc ax
mov word [0x4bd5ac], ax
movzx ecx, ax
mov eax, dword [esp + 0x24]
movzx ecx, byte [ecx + eax]
mov eax, dword [esp + 0x14]
xor ecx, dword [0x1d232]
movzx edi, al
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x6e60]
sub eax, edi
push eax
push ecx
push edx
push dword [0x4bd5d4]
push esi
push ebx
push ebp
call fcn.00403b70
mov ebx, dword [esp + 0x64]
xor edx, edx
mov ebp, dword [esp + 0x5c]
movzx ecx, word [ebx]
mov dword [ecx*4 + 0x82], eax
movzx eax, word [0x4bd5a0]
movzx ecx, word [0x4bd5ac]
add eax, ecx
mov esi, dword [0x4bd598]
div edi
movzx eax, word [esi*4 + 0xc9c]
add edx, 0x67c
movzx ecx, dx
imul ecx, eax
mov eax, 0xffff
mov word [esi*4 + 0xc9c], cx
add word [0x4bd5a0], ax
movzx edx, word [ebx]
mov ecx, dword [0x4bd5e8]
add edx, edx
movzx eax, word [ebx + 0x2bca]
xor eax, dword [ecx + edx*8]
add eax, ebp
xor dword [ecx + edx*8], eax
mov eax, dword [0x4bd5ec]
lea edi, [eax - 0x189a]
inc eax
mov dword [0x4bd5ec], eax
movzx esi, word [ebx + eax*2 - 2]
mov eax, dword [esp + 0x60]
mov edx, dword [eax + 0x30b8]
mov eax, dword [0x4bd598]
mov ecx, eax
dec eax
mov dword [0x4bd598], eax
movzx eax, word [ebx + 0x7466]
mov ebx, dword [esp + 0x60]
or eax, 0x1dcc
push eax
lea eax, [ebp + 1]
push 0x1d19
xor ax, word [ebx + 0x5b90]
movzx eax, ax
push eax
push ecx
push edx
push 0x15c2
push esi
push 0x1ba4
push dword [0x4bd560]
push edi
call fcn.00404941
add esp, 0x44
pop edi
pop esi
pop ebp
mov eax, 0x19c4
pop ebx
add esp, 0x2c
ret