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

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov esi, edx
sub esp, 0x5c
mov edi, dword [edx + 0xc]
mov ebx, dword [edx + 8]
mov dword [esp], 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x48], 1
call sub.cygwin1.dll_malloc
test eax, eax
mov dword [esp + 0x4c], eax
je 0x41e711
mov dword [eax], ebx
lea eax, [esp + 0x44]
mov ecx, edi
mov edx, esi
mov dword [esp], eax
mov eax, ebp
call fcn.0041fcf0
test eax, eax
jne 0x41e6f5
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], 0
lea esi, [eax*4]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x18]
lea edi, [esi + 0x18]
add esi, 0x14
test eax, eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
je 0x41e6dd
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov edx, 0
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax]
add ecx, 1
mov ebx, dword [eax + esi]
mov esi, dword [esp + 0x1c]
test ebx, ebx
cmove edx, ecx
cmp edx, dword [esi + 0x78]
mov dword [esp + 0x3c], edx
jg 0x41e71e
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
sub dword [esp + 0x14], 1
mov dword [esp + 0x48], 0
mov eax, dword [eax + 0x64]
mov edi, dword [eax + esi - 4]
test edi, edi
je 0x41e6b0
mov ecx, dword [edi + 0x14]
mov eax, dword [esp + 0x1c]
test ecx, ecx
mov esi, dword [eax + 0x54]
je 0x41e6b0
xor ebp, ebp
mov eax, ebp
mov ebp, edi
mov edi, eax
jmp 0x41e60a
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
call fcn.0041b180
test al, al
je 0x41e5fe
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov eax, dword [eax]
mov eax, dword [eax + ecx]
test eax, eax
je 0x41e5fe
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + ebx*4]
lea edx, [eax + 0xc]
mov eax, dword [eax + 8]
call fcn.00418740
test eax, eax
je 0x41e5fe
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x41e5e6
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov dword [esp + 8], ebx
mov edx, dword [esp + 0x38]
add eax, ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
call fcn.00418a10
test al, al
jne 0x41e5fe
lea eax, [esp + 0x44]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004172f0
test al, al
je 0x41e6f0
add edi, 1
cmp edi, dword [ebp + 0x14]
jae 0x41e6b0
mov eax, dword [ebp + 0x18]
mov edx, dword [esi]
mov ebx, dword [eax + edi*4]
lea eax, [ebx*8]
add edx, eax
mov dword [esp + 0x20], eax
test byte [edx + 6], 0x10
je 0x41e564
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0xc]
mov eax, dword [ecx + 0x54]
mov dword [esp], ecx
mov ecx, ebx
mov dword [esp + 0x2c], edx
lea edx, [eax + 0x80]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x24]
mov eax, dword [eax]
call fcn.0041c940
cmp eax, 0
mov dword [esp + 0x24], eax
jle 0x41e6e1
add eax, dword [esp + 0x14]
cmp dword [esp + 0x2c], eax
jb 0x41e5a7
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + eax*4]
test eax, eax
je 0x41e6a2
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + ebx*4]
lea edx, [eax + 0xc]
mov eax, dword [eax + 8]
call fcn.00418740
test eax, eax
jne 0x41e5a7
mov edx, dword [esp + 0x20]
add edx, dword [esi]
jmp 0x41e564
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
call fcn.0041fcf0
test eax, eax
jne 0x41e6f5
mov edx, dword [esp + 0x14]
sub dword [esp + 0x28], 4
test edx, edx
jne 0x41e4f2
xor eax, eax
jmp 0x41e6f5
jne 0x41e5a7
jmp 0x41e6a2
mov eax, 0xc
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov dword [esp], edx
call fcn.004264dc
mov eax, dword [esp + 0x14]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x5c
mov eax, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x28]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], esi
call sub.cygwin1.dll_memset
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.004264dc
xor eax, eax
jmp 0x41e709