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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov ax, word [0x848408]
xor edx, edx
movzx ecx, ax
mov dword [esp + 0x10], ecx
mov ecx, 0xffff
add ax, cx
mov dword [esp + 0x3c], 0x1919
mov word [0x848408], ax
mov ecx, 0x904
mov eax, dword [0x84844c]
mov ebp, dword [esp + 0x78]
div ebp
inc ebp
mov ebx, dword [esp + 0x7c]
movzx eax, ax
xor edx, edx
mov dword [esp + 0x70], eax
mov eax, dword [0x848454]
mov dword [esp + 0x64], eax
movzx eax, word [0x848468]
sub ecx, eax
mov dword [esp + 0x78], ebp
mov eax, dword [0x848400]
mov esi, dword [0x848438]
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + ebp*4 + 0xc]
div dword [0x848404]
mov ecx, dword [0x8483fc]
sub ecx, dword [0x848464]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + esi*4]
or eax, 0x159
mov dword [esp + 0x30], ebp
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x5008]
mov dword [esp + 0x6c], eax
movzx eax, cx
mov ecx, dword [0x848414]
mov dword [esp + 0x34], eax
mov eax, dword [0x848430]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x38], ebp
mov edi, dword [eax + 0x5788]
mov eax, dword [ebx + 0x5360]
add edi, 0x673
and eax, ecx
mov dword [esp + 0x68], edi
mov dword [esp + 0x4c], eax
inc ecx
mov eax, dword [0x848470]
mov dword [esp + 0x28], eax
inc eax
mov dword [0x848470], eax
mov eax, dword [0x848448]
cdq
idiv dword [esp + 0x3c]
mov eax, dword [0x848450]
mov dword [0x848414], ecx
mov dword [esp + 0x24], edx
cmp eax, dword [ebx + esi*4]
jb 0x41813c
movzx eax, byte [0x84840b]
xor edx, edx
mov esi, dword [esp + 0x10]
mov dword [esp + 0x1c], ebp
movzx eax, byte [eax + ebp]
add ecx, eax
mov dword [0x848414], ecx
mov ecx, dword [esi]
mov eax, dword [ebx + 0x3efc]
and eax, ebp
movzx ecx, byte [ecx + ebp + 1]
div ecx
or eax, ebp
and dword [0x848404], eax
mov ecx, dword [esi]
movzx eax, byte [ebp + ecx*2]
xor eax, dword [0x848470]
sub eax, 0x1f0c
mov dword [ebx + ecx*4 + 8], eax
movzx eax, word [0x84843c]
cmp ebp, eax
je 0x417fb3
mov eax, dword [esp + 0x34]
lea esi, [ebx + 0xc]
movzx eax, ax
lea esi, [esi + ebp*4]
mov dword [esp + 0x54], eax
shl eax, 2
mov dword [esp + 0x5c], eax
mov eax, ebp
shl eax, 4
mov dword [esp + 0x3c], eax
lea eax, [ebx + ebp*4]
mov dword [esp + 0x20], eax
lea eax, [edi + ebp*4]
mov dword [esp + 0x18], eax
mov eax, 0x1e12
sub eax, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x58], eax
mov eax, 0x450
sub eax, edi
sub dword [esp + 0x28], edi
mov dword [esp + 0x50], eax
mov eax, 0xd25
mov ebx, dword [esp + 0x3c]
and word [0x848468], ax
sub ebx, 0x10
mov eax, dword [0x8483f8]
add eax, dword [0x848414]
cdq
push 7
pop ecx
idiv ecx
xor edx, edx
mov dword [esp + 0x3c], ebx
mov ecx, 0x5ea0
div dword [ecx]
mov eax, dword [esp + 0x4c]
sub edx, dword [esi]
mov ecx, dword [esp + 0x1c]
mov dword [esi], edx
dec dword [0x848414]
movzx ecx, byte [eax + ecx + 5]
mov eax, ebp
cdq
idiv ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [0x848470]
mov edi, eax
mov eax, dword [esp + 0x2c]
sub edx, 4
inc ecx
mov dword [esp + 0x18], edx
mov ebp, dword [esp + 0x24]
mov esi, dword [eax + 0x3c18]
mov eax, dword [esp + 0x50]
mov dword [0x848470], ecx
imul ecx, dword [0x848404]
dec dword [esp + 0x30]
mov eax, dword [eax + edx]
xor edx, edx
div dword [esp + 0x54]
push edx
push dword [esp + 0x20]
push ecx
push ebp
push esi
push edi
call fcn.0041988c
mov ecx, dword [0x848434]
xor edx, edx
mov dword [ebx + ecx], eax
mov ecx, 0xffff
mov ax, word [0x848408]
mov esi, dword [0x848410]
add ax, cx
mov ecx, dword [esp + 0x70]
inc esi
movzx ebx, ax
mov word [0x848408], ax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x74]
mov edi, dword [eax]
mov eax, ebp
mov ebp, dword [esp + 0x38]
mov dword [0x848410], esi
div dword [ecx + ebp]
mov ebp, dword [esp + 0x28]
mov eax, 0x11f5
mov ecx, edx
xor edx, edx
div dword [ebx + ebp]
mov ebp, dword [esp + 0x90]
push eax
push ecx
mov eax, ebp
mov ecx, 0x1a29
cdq
idiv ecx
push eax
mov eax, dword [esp + 0x64]
or eax, 0x1c22
push eax
mov ebx, dword [esp + 0x88]
push esi
push edi
push ebx
call fcn.00401922
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x98]
mov esi, dword [esp + 0xb0]
sub dword [esp + 0x48], 4
mov ecx, dword [edx]
add edx, 4
mov dword [esp + 0x44], edx
add dword [esp + 0x44], 4
sub dword [esp + 0x48], 4
mov byte [ebx + ecx], al
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x60]
dec eax
movzx ebx, byte [0x84843e]
mov dword [esp + 0xac], eax
push 0x115d
add ebx, dword [ecx + eax*4]
mov ecx, dword [edx]
xor edx, edx
mov eax, dword [esp + 0x58]
movzx ebp, bp
mov eax, dword [eax]
div dword [esi + ecx*4]
mov esi, dword [ecx*4 + 0x464]
mov eax, dword [esp + 0xb0]
mov edi, edx
mov edx, dword [esp + 0x50]
or esi, eax
mov ecx, dword [esp + 0x60]
dec eax
mov dword [esp + 0xb0], eax
movzx ecx, byte [ecx + edx]
cdq
idiv ecx
push eax
push esi
mov esi, dword [esp + 0x5c]
push esi
push edi
push ebx
push ebp
call fcn.00401922
movzx ecx, word [0x84843c]
add esp, 0x50
add dword [esp + 0x20], 4
inc esi
mov ebp, dword [esp + 0x78]
cmp esi, ecx
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x40], eax
jne 0x417dca
mov ebx, dword [esp + 0x7c]
mov edi, dword [esp + 0x68]
mov eax, dword [0x84840c]
mov esi, dword [edi + eax*4]
cmp esi, dword [0x848428]
jne 0x418039
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
add ebx, 8
movzx eax, ax
mov dword [esp + 0x68], eax
lea ebx, [ebx + esi*2]
mov eax, dword [0x848444]
mov ecx, dword [esp + 0x2c]
and eax, ebp
cdq
mov ebp, dword [esp + 0x68]
idiv dword [ecx + esi*4]
mov eax, edx
cdq
idiv dword [0x8483f8]
mov dword [0x8483f8], eax
mov eax, 0x159b
movzx ecx, byte [ebx]
lea ebx, [ebx + 2]
mov edx, dword [eax]
mov eax, dword [esp + 0x38]
movzx eax, byte [eax + ebp]
mov ebp, dword [esp + 0x78]
imul ecx, eax
imul ecx, dword [edi + edx*4]
mov dword [edi + edx*4], ecx
mov eax, dword [0x848418]
sub eax, dword [0x84840c]
inc esi
mov dword [0x84840c], eax
cmp esi, dword [0x848428]
je 0x417fd8
mov ebx, dword [esp + 0x7c]
mov eax, dword [0x84847c]
xor edx, edx
mov ecx, dword [esp + 0x24]
inc ecx
mov esi, dword [esp + 0x30]
mov dword [esp + 0x24], ecx
mov eax, dword [eax + ebp*4]
div ecx
mov eax, dword [esp + 0x6c]
mov ecx, esi
add ecx, ecx
xor dl, byte [eax + 0x384]
xor dl, byte [0x848474]
xor byte [0x84840a], dl
mov eax, dword [esp + 0x44]
inc byte [eax]
mov al, byte [eax]
movzx edx, al
mov eax, dword [0x848460]
mov eax, dword [eax + ecx*8 + 0x7c]
sub eax, dword [0x84840c]
add eax, 0x1056
and dword [ebx + edx*4], eax
mov eax, dword [esp + 0x38]
movzx ecx, byte [eax + esi*4 + 4]
movzx eax, byte [eax + esi + 1]
sub eax, dword [0x848404]
push eax
mov eax, dword [esp + 0x74]
push ebp
push 0xf71
movzx eax, ax
push eax
push ecx
push dword [0x848414]
call fcn.0041988c
mov edx, dword [esp + 0x28]
mov dword [0x848428], eax
mov eax, dword [edx]
mov eax, dword [eax*4 + 0x159b]
or eax, dword [esp + 0x3c]
sub eax, ebp
add dword [ebx + ebp*4], eax
mov ecx, dword [edx]
mov eax, dword [ebx + 0xaf0]
xor eax, ebp
sub eax, dword [ecx*4 + 0x470]
mov dword [ecx*4 + 0x470], eax
mov eax, 0x159b
mov ecx, dword [esp + 0x50]
push dword [0x84846c]
mov eax, dword [eax]
movzx esi, word [eax*8 + 0x4ca]
mov eax, dword [edx]
xor esi, dword [eax*4 + 0x159b]
mov eax, dword [esp + 0x50]
dec eax
movzx edx, ax
mov eax, dword [0x848420]
inc eax
add eax, eax
movzx ecx, byte [edx + ecx]
xor ecx, dword [edi + eax*8]
push ecx
push 0x720
push esi
push edx
call fcn.00418beb
add esp, 0x2c
mov dword [ebx + ebp*8], eax
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebp
imul eax, dword [eax + 0x4a28], 0x1dba
pop ebx
add esp, 0x64
ret