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

Disassembly:
sub esp, 0x3c
movzx edx, word [0x5079a8]
mov eax, dword [0x5079a0]
mov ecx, edx
add ecx, ecx
mov dword [esp + 0x18], 0xb5
push ebx
mov ebx, dword [0x507944]
xor ebx, dword [0x507964]
mov eax, dword [eax + ecx*8 + 0x74]
mov ecx, edx
mov dword [esp + 0x2c], eax
movzx eax, word [0x50798c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
mov edi, dword [0x507958]
mov dword [esp + 0x2c], esi
mov ax, word [eax + esi*4 + 0x9c]
xor ax, word [0x507970]
movzx ebp, ax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], ebx
movzx eax, byte [edi + eax]
and eax, dword [0x507954]
mov dword [esp + 0x44], eax
mov eax, dword [0x50795c]
dec eax
xor ecx, eax
mov dword [0x50795c], eax
mov eax, dword [0x507984]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x507990]
mov eax, dword [eax + edi*4]
xor eax, edi
mov dword [esp + 0x34], eax
movzx eax, word [0x507948]
sub ecx, eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + edx*4 + 0x3c]
xor eax, esi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax + edi*4 + 0x58]
cdq
idiv dword [esp + 0x28]
inc dword [0x507998]
mov edx, 0x7be
dec dword [0x507940]
mov byte [esp + 0x13], al
mov eax, dword [ecx + esi*4]
add eax, esi
imul ecx, esi, 0xc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
sub dx, word [ecx + eax]
mov eax, dword [0x507988]
or eax, 0x1864
movzx ecx, dx
mov dword [esp + 0x24], eax
movzx eax, cx
mov dword [esp + 0x28], ecx
cmp eax, dword [esp + 0x68]
jl 0x41c940
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x5079a4]
cmp ecx, dword [eax + 0x2f98]
jle 0x41c940
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x18]
movzx eax, byte [esi + eax]
cmp ax, word [ecx + esi*2]
je 0x41c940
movzx eax, byte [0x50794a]
add ebp, 0xffff
mov dword [esp + 0x20], ebp
cmp ax, bp
ja 0x41c940
mov eax, dword [0x507978]
mov edi, 0x1841
mov dword [0x507994], ebx
inc ebx
mov dword [esp + 0x30], ebx
mov al, byte [eax + 0x12344]
mov byte [esp + 0x40], al
mov eax, dword [esp + 0x34]
mov al, byte [eax + esi]
or al, byte [ecx + 0x1be]
mov byte [esp + 0x18], al
movzx eax, bp
cdq
idiv dword [0x507988]
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x6108]
and eax, 0x1184
push eax
mov eax, dword [esp + 0x20]
push edx
push dword [esp + 0x20]
push dword [esp + 0x4c]
push eax
push 6
call fcn.00405640
mov ecx, dword [0x50799c]
add esp, 0x18
mov dword [ecx + 0x6104], eax
jmp 0x41c945
mov edi, 0x1842
imul eax, dword [0x50797c], 0xc
mov ecx, dword [esp + 0x3c]
mov ecx, dword [eax + ecx]
mov eax, ecx
cdq
idiv ebx
sub eax, 0xba9
cdq
idiv ecx
mov ecx, dword [esp + 0x60]
imul eax, edi, 0xc
mov dword [eax + ecx], edx
mov eax, 0x45a
cdq
mov ecx, 0x906
idiv dword [0x507950]
mov ebp, dword [0x507988]
cdq
or ebp, 0x1aa0
idiv ecx
mov eax, dword [esp + 0x24]
sub edx, 0x1d1c
mov dword [esp + 0x40], ebp
or dword [0x507970], edx
mov ebp, dword [esp + 0x44]
movzx ecx, word [eax]
mov eax, dword [esp + 0x50]
mov edx, dword [eax + ecx*4]
xor edx, dword [esp + 0x68]
mov eax, dword [0x50796c]
mov dword [esp + 0x18], edx
movzx ebx, byte [eax + ebp]
movzx eax, byte [edx + ebp]
mov edx, dword [esp + 0x14]
and ebx, eax
mov eax, dword [esp + 0x20]
movzx eax, ax
movzx edi, byte [edx + esi*4]
movzx esi, byte [ecx + ebp + 8]
sub edi, eax
movzx eax, word [0x507948]
mov ecx, 0x9c6
xor esi, eax
mov ebp, dword [esp + 0x18]
movzx eax, byte [edx + 0x17ac]
xor edx, edx
div ecx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
mov ecx, dword [ecx + eax*4 + 0x30]
and ecx, eax
mov eax, dword [0x507974]
mov eax, dword [eax + ebp*4]
dec ebp
push eax
push ecx
push edx
push dword [esp + 0x64]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x50]
push esi
push edi
push dword [esp + 0x40]
push ebx
push ebp
push 0x173e
call fcn.0041bb4d
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x80]
mov dword [0x507970], eax
movzx eax, byte [esp + 0x3b]
movzx ecx, byte [eax + edx]
mov eax, dword [0x50799c]
xor cx, word [eax + ebp*4]
movzx eax, byte [edx + ebp]
sub cx, ax
mov eax, dword [esp + 0x4c]
movzx ecx, cx
movzx eax, word [eax]
movzx eax, byte [eax + 0x11e6]
imul ecx, eax
mov eax, dword [esp + 0x3c]
inc ebp
mov word [0x50798c], cx
mov ecx, dword [esp + 0x88]
push ebp
mov al, byte [eax + 0x1155]
xor al, 0x88
mov dword [esp + 0x84], ebp
mov byte [esp + 0x70], al
mov eax, dword [0x507988]
mov ecx, dword [ecx + eax*4]
mov al, byte [0x507960]
mov byte [esp + 0x74], al
mov eax, dword [esp + 0x64]
push dword [eax + ebp*4 + 0x7c]
mov eax, dword [esp + 0x58]
inc al
movzx eax, al
push eax
push dword [esp + 0x7c]
push ecx
push dword [esp + 0x80]
call fcn.00405640
movzx edx, word [0x5079a8]
add esp, 0x40
mov edi, dword [esp + 0x2c]
mov esi, edx
movzx ecx, word [0x507980]
add esi, esi
mov dword [0x507944], eax
mov eax, dword [0x5079a0]
sub ecx, dword [eax + edi*4]
mov eax, dword [esp + 0x6c]
xor ecx, edx
mov edx, dword [esp + 0x2c]
add dword [eax + esi*8], ecx
mov ebx, dword [eax + 0x72d0]
mov ecx, dword [esp + 0x68]
or ebx, ecx
mov eax, dword [esp + 0x14]
imul edi, dword [0x507994], 0x1922
movzx esi, byte [eax + edx]
lea eax, [ecx + 1]
xor esi, eax
mov eax, dword [esp + 0x5c]
movzx edx, byte [eax + ebp]
mov eax, dword [0x50799c]
add edx, ebp
mov ebp, dword [esp + 0x18]
imul ecx, ebp, 0xc
imul eax, dword [ecx + eax], 0x906
mov ecx, 0x173e
push eax
push edx
push esi
push ecx
push dword [esp + 0x40]
mov al, 0x29
sub al, byte [esp + 0x7c]
push edi
movzx eax, al
push eax
push ebx
push 0x13ec
push ecx
call fcn.0041bb4d
mov ecx, dword [0x507958]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x60]
mov byte [edx + ecx*4], al
mov eax, dword [esp + 0x94]
lea ecx, [eax + ebx*4]
movzx eax, word [0x5079a8]
cdq
idiv dword [ecx]
mov eax, dword [esp + 0x78]
inc ebp
mov dword [ecx], edx
imul ecx, ebx, 0xc
mov dword [eax + ebp*4], ebp
mov edi, dword [esp + 0x7c]
add ebp, ebp
mov eax, dword [edi + 0x6838]
cdq
idiv dword [ecx + esi]
mov dword [ecx + esi], edx
xor edx, edx
mov al, byte [0x507990]
mov ecx, dword [esp + 0x88]
sub al, 0x3c
mov byte [esp + 0x90], al
mov al, byte [0x50797c]
mov byte [esp + 0x78], al
mov eax, dword [esp + 0x64]
mov esi, dword [esi + 0x668c]
or esi, 0x1df0
mov al, byte [eax + 0x2b9c]
or al, 6
mov byte [esp + 0x80], al
mov eax, dword [0x507944]
div dword [ecx + ebp*8]
mov eax, dword [esp + 0x44]
movzx ecx, byte [eax + 0x7a9]
movzx eax, byte [0x50794a]
and ecx, eax
push ecx
push edx
push dword [esp + 0x88]
push dword [esp + 0x84]
push esi
push dword [esp + 0xa4]
call fcn.00405640
add esp, 0x40
mov dword [edi + ebx*4], eax
mov eax, 0x906
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret