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

Disassembly:
sub esp, 0xb8
mov eax, dword [0x824980]
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x40], edx
test eax, eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x28], ebp
jle 0x41f5cf
push ebx
push esi
jmp 0x41f1ed
mov edi, dword [esp + 0x5c]
mov eax, dword [0x824974]
mov ecx, dword [eax + ebp*4]
mov dl, byte [ecx + 0x3c]
test dl, dl
jne 0x41f5bb
mov edx, ecx
push 0
add edx, 0x28
push 0
mov eax, dword [edx]
mov dword [esp + 0x40], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x44], ecx
mov esi, dword [edx + 8]
mov dword [esp + 0x48], esi
mov edx, dword [edx + 0xc]
mov dword [esp + 0x4c], edx
mov edx, dword [0x821c8c]
mov esi, dword [edx + 0xb0]
mov edx, dword [edx + 0xb4]
sub ecx, edx
mov edx, dword [0x821950]
sub eax, esi
mov esi, dword [0x821954]
add eax, edx
add ecx, esi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], ecx
push eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0xb4]
call fcn.0041fdf0
mov ecx, dword [eax]
mov dword [esp + 0x80], ecx
push 0
mov edx, dword [eax + 4]
push 0
mov dword [esp + 0x8c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x90], ecx
mov ecx, dword [edi + 4]
mov edx, dword [eax + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x94], edx
lea edx, [esp + 0x68]
mov dword [esp + 0x6c], ecx
push edx
lea edx, [esp + 0x8c]
lea ecx, [esp + 0xc4]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], 0x3c
mov dword [esp + 0x78], 0x1e
call fcn.0041fdf0
mov ecx, eax
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
mov eax, dword [ecx + 8]
test eax, eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
jle 0x41f5bb
test ecx, ecx
jle 0x41f5bb
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov eax, edi
mov edx, dword [esp + 0x3c]
sub eax, esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x90], eax
mov eax, ebx
sub eax, ecx
mov ecx, dword [0x824974]
mov edx, dword [ecx + ebp*4]
mov ecx, dword [edx + 0x38]
mov dword [esp + 0x58], ecx
movsx edx, word [ecx + 6]
test edx, edx
mov dword [esp + 0x24], edx
jbe 0x41f33f
add ecx, 8
test ecx, ecx
je 0x41f33f
movsx edx, word [ecx]
movsx ebp, word [ecx + 2]
movsx esi, word [ecx + 4]
movsx ecx, word [ecx + 6]
jmp 0x41f357
mov edx, dword [0x824928]
mov ebp, dword [0x82492c]
mov esi, dword [0x824930]
mov ecx, dword [0x824934]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x54]
add ecx, ebp
mov dword [esp + 0x20], ebx
cmp ebx, ecx
jg 0x41f370
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x20]
sub ecx, ebp
sub ecx, dword [esp + 0x54]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0xa4]
add ecx, ebp
mov ebp, dword [esp + 0x54]
add ecx, ebp
mov ebp, dword [esp + 0x7c]
add ebx, ebp
cmp ebx, ecx
mov dword [esp + 0x1c], ebx
jl 0x41f39f
mov dword [esp + 0x1c], ecx
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x10], edi
lea ecx, [edx + ebp]
cmp edi, ecx
jg 0x41f3b2
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x10]
lea ecx, [esi + edx]
add ecx, ebp
sub ebx, edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x78]
add ecx, edi
mov edi, dword [esp + 0x28]
sub ebx, ebp
cmp ecx, edi
jge 0x41f3d7
mov dword [esp + 0x18], ecx
jmp 0x41f3dd
mov dword [esp + 0x18], edi
mov ecx, edi
mov edi, esi
lea eax, [eax + eax*2]
sub edi, ecx
add edi, edx
mov edx, dword [0x8198d4]
add edi, ebx
lea eax, [eax + eax*4]
mov edx, dword [edx + 0x28]
add edi, ebp
mov ebp, dword [esp + 0x10]
sub edx, ecx
mov ecx, dword [esp + 0x78]
add edx, ebp
mov dword [esp + 0x34], edx
mov edx, 0x3c
sub edx, ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x28], edx
lea edx, [ecx + eax*4 + 0x786850]
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x14], edx
jbe 0x41f441
mov ecx, dword [esp + 0x58]
lea eax, [ecx + 8]
test eax, eax
je 0x41f441
mov ebp, dword [eax + 0x14]
test ebp, ebp
je 0x41f441
add ebp, ecx
jmp 0x41f443
xor ebp, ebp
mov eax, dword [esp + 0x20]
mov ecx, dword [0x821954]
sub eax, ecx
mov ecx, dword [0x8198d4]
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.00411230
mov ecx, dword [0x8198d4]
imul esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x1c]
add esi, ebx
mov ebx, dword [esp + 0x20]
add ebp, esi
mov esi, dword [ecx + 0x28]
sub edx, ebx
mov dword [esp + 0x24], edx
imul esi, edx
mov edx, dword [esp + 0x10]
mov ebx, edx
neg ebx
shl ebx, 0x1f
sub ebx, edx
mov edx, dword [esp + 0x18]
add edx, esi
mov esi, dword [ecx + 0x1c]
add ebx, edx
lea edx, [eax + ebx*2 + 4]
cmp edx, esi
mov edx, dword [esp + 0x1c]
jb 0x41f547
cmp dword [esp + 0x20], edx
jge 0x41f5b7
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
cmp edx, esi
jge 0x41f51f
sub esi, edx
mov dl, byte [ebp]
inc ebp
mov byte [esp + 0x2c], dl
mov edx, dword [esp + 0x14]
mov bl, byte [edx]
inc edx
cmp bl, 0x20
mov dword [esp + 0x14], edx
je 0x41f507
mov ecx, dword [esp + 0x2c]
and ecx, 0xff
shl ecx, 8
xor edx, edx
mov dx, word [eax]
movzx cx, byte [ecx + edx + 0x824998]
mov word [eax], cx
mov ecx, dword [0x8198d4]
mov edx, dword [ecx + 0x1c]
add eax, 2
cmp eax, edx
jb 0x41f514
sub eax, dword [ecx + 0x20]
dec esi
jne 0x41f4cb
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
add ebp, edi
add dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x34]
lea eax, [eax + ebx*2]
mov ebx, dword [ecx + 0x1c]
cmp eax, ebx
jb 0x41f53a
sub eax, dword [ecx + 0x20]
mov ebx, dword [esp + 0x1c]
dec ebx
mov dword [esp + 0x1c], ebx
jne 0x41f4c5
jmp 0x41f5b7
cmp dword [esp + 0x20], edx
jge 0x41f5b7
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp edx, ecx
jge 0x41f5a3
sub ecx, edx
mov dl, byte [ebp]
inc ebp
mov byte [esp + 0x2c], dl
mov edx, dword [esp + 0x14]
mov bl, byte [edx]
inc edx
cmp bl, 0x20
mov dword [esp + 0x14], edx
je 0x41f595
mov edx, dword [esp + 0x2c]
and edx, 0xff
shl edx, 8
xor ebx, ebx
mov bx, word [eax]
movzx dx, byte [edx + ebx + 0x824998]
mov word [eax], dx
add eax, 2
dec ecx
jne 0x41f55f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
add ebp, edi
lea eax, [eax + ebx*2]
mov ebx, dword [esp + 0x28]
add dword [esp + 0x14], ebx
dec esi
jne 0x41f559
mov ebp, dword [esp + 0x30]
mov eax, dword [0x824980]
inc ebp
cmp ebp, eax
mov dword [esp + 0x30], ebp
jl 0x41f1e9
pop esi
pop ebx
pop edi
pop ebp
add esp, 0xb8
ret