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

Disassembly:
sub esp, 0x2dc
push ebx
push ebp
mov ebp, dword [esp + 0x2e8]
mov eax, dword [ebp]
xor ebx, ebx
or ecx, 0xffffffff
push esi
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
cmp eax, 1
je 0x41a362
add eax, 0xfffffffe
cmp eax, 1
ja 0x41a35a
mov esi, dword [ebp + 0x14]
sub esi, dword [ebp + 0xc]
mov dword [esp + 0x14], esi
jmp 0x41a375
mov dword [esp + 0x14], ecx
mov esi, ecx
jmp 0x41a375
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.MSVCR90.dll_ftell]
add esp, 4
mov dword [esp + 0x14], eax
mov esi, eax
mov ecx, dword [esp + 0x2f4]
mov edi, dword [ecx + 0x14]
push 0x1c
push 1
call dword [sym.imp.MSVCR90.dll_calloc]
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x41a3ab
mov dword [0x52b0d8], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
cmp edi, ebx
jle 0x41a3c9
push 0x34
mov eax, edi
call fcn.00402f10
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edx], eax
cmp eax, ebx
je 0x41a683
push 0x25c
mov eax, 1
call fcn.00402f10
mov edi, dword [esp + 0x14]
add esp, 4
mov dword [edi + 8], eax
cmp eax, ebx
je 0x41a683
mov ecx, dword [esp + 0x2f4]
cmp dword [ecx + 0x14], ebx
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x20], ebx
jle 0x41a5db
lea ecx, [eax + esi - 0x200]
mov eax, dword [ebp]
cmp eax, 1
je 0x41a43a
add eax, 0xfffffffe
cmp eax, 1
ja 0x41a42e
mov eax, dword [ebp + 0xc]
add ecx, eax
mov dword [ebp + 0x20], ebx
cmp ecx, eax
jb 0x41a44d
cmp ecx, dword [ebp + 0x10]
ja 0x41a44d
mov dword [ebp + 0x14], ecx
jmp 0x41a457
mov dword [0x52b0e0], 0xfffffff6
jmp 0x41a457
mov eax, dword [ebp + 4]
push ebx
push ecx
push eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
test eax, eax
je 0x41a457
mov dword [0x52b0e0], 0xfffffffa
push ebp
push 1
lea ecx, [esp + 0x70]
push 0x20
push ecx
call fcn.0040e6f0
add esp, 0x10
cmp eax, 1
jb 0x41a67c
cmp dword [esp + 0x6c], ebx
jle 0x41a644
xor edi, edi
cmp dword [0x52b398], 0x10
je 0x41a49c
cmp dword [esp + 0x1c], 0xffffffff
je 0x41a495
cmp byte [esp + 0x7a], 0
jne 0x41a49c
lea edi, [esp + 0x88]
push edi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
push ebp
call fcn.0041b870
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x41a690
mov esi, dword [esp + 0x24]
cmp esi, 8
jle 0x41a4d1
xor edi, edi
jmp 0x41a4f1
test edi, edi
je 0x41a4f1
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push 0
push edi
call fcn.004174b0
add esp, 0xc
test eax, eax
je 0x41a690
push 0x34
lea ecx, [esp + 0x38]
push 0
push ecx
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add esp, 0xc
cmp esi, 8
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], esi
jg 0x41a544
mov edx, 1
mov ecx, esi
shl edx, cl
mov dword [esp + 0x48], edx
movsx eax, word [esp + 0x70]
mov dword [esp + 0x3c], eax
movsx eax, word [esp + 0x72]
lea esi, [esp + 0x34]
mov dword [esp + 0x40], eax
call fcn.004171b0
test eax, eax
je 0x41a690
mov dword [esp + 0x4c], 1
test edi, edi
je 0x41a61d
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov eax, esi
push eax
xor esi, esi
call fcn.00417210
mov eax, ebx
add esp, 4
mov dword [esp + 0x1c], eax
inc eax
mov dword [esp + 0x18], eax
xor ebx, ebx
movsx ecx, word [esp + 0x76]
movsx edx, word [esp + 0x74]
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x1c]
call fcn.00417450
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x300]
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
inc ecx
add esp, 0xc
cmp ecx, dword [edx + 0x14]
mov dword [esp + 0x20], ecx
jl 0x41a401
mov eax, dword [ebp]
cmp eax, 1
je 0x41a6bd
add eax, 0xfffffffe
cmp eax, 1
ja 0x41a6a6
mov eax, dword [ebp + 0xc]
lea ecx, [eax + esi]
mov dword [ebp + 0x20], ebx
cmp ecx, eax
jb 0x41a6d0
cmp ecx, dword [ebp + 0x10]
ja 0x41a6d0
mov dword [ebp + 0x14], ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
cmp byte [esp + 0x7a], 0
je 0x41a597
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push ecx
xor esi, esi
call fcn.00417210
add esp, 4
jmp 0x41a597
mov eax, dword [edi]
movsx esi, word [esp + 0x78]
imul esi, dword [eax + 4]
add esi, dword [eax + 0x18]
movsx edx, word [esp + 0x70]
movsx eax, word [esp + 0x72]
mov ecx, 0xd
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
jmp 0x41a599
mov ebx, edi
call fcn.00417520
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
mov ebx, dword [esp + 0x10]
call fcn.00417520
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
mov dword [0x52b0e0], 0xfffffff6
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
mov eax, dword [ebp + 4]
push ebx
push esi
push eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
test eax, eax
je 0x41a6da
mov dword [0x52b0e0], 0xfffffffa
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret