Function at 0x4102bb
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c23e378
push 0x5c23d270
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x41052d
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x41052d
mov dword [ebp - 4], 0
cmp word [edi], 0x5a4d
jne 0x410526
mov esi, dword [edi + 0x3c]
add esi, edi
mov dword [ebp - 0x1c], esi
cmp dword [esi], 0x4550
jne 0x410526
cmp word [esi + 0x14], 0
je 0x410526
cmp word [esi + 0x18], 0x10b
jne 0x410526
mov eax, dword [esi + 0x74]
test eax, eax
je 0x410526
mov eax, dword [esi + 0x78]
test eax, eax
je 0x410526
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x410526
push eax
push esi
call fcn.0041007b
add esp, 8
mov dword [ebp - 0x28], eax
test eax, eax
je 0x410526
add edi, eax
mov dword [ebp - 0x30], edi
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x410526
mov eax, dword [edi + 0x14]
test eax, eax
je 0x410526
cmp ebx, 0x10000
jae 0x4103de
mov eax, dword [edi + 0x10]
cmp ebx, eax
jb 0x410526
mov edx, ebx
sub edx, eax
cmp edx, dword [edi + 0x14]
jae 0x410526
push ecx
push esi
call fcn.0041007b
add esp, 8
mov dword [ebp - 0x28], eax
test eax, eax
je 0x410526
sub ebx, dword [edi + 0x10]
lea eax, [eax + ebx*4]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x20]
test eax, eax
je 0x410526
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x410526
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x410526
push eax
push esi
call fcn.0041007b
add esp, 8
mov dword [ebp - 0x28], eax
test eax, eax
je 0x410526
mov edx, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
mov ebx, dword [edi + 0x18]
dec ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jg 0x4104a9
add eax, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x40], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + esi*4]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0041007b
add esp, 8
mov dword [ebp - 0x28], eax
test eax, eax
je 0x410526
mov ecx, dword [ebp + 8]
lea edx, [eax + ecx]
mov dword [ebp - 0x38], edx
mov cl, byte [edi]
test cl, cl
jne 0x410476
mov al, byte [edx]
test al, al
je 0x410480
mov al, byte [edx]
cmp cl, al
je 0x410513
cmp cl, al
jge 0x410492
lea ebx, [esi - 1]
mov dword [ebp - 0x20], ebx
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
jmp 0x41042a
jle 0x4104a0
inc esi
mov dword [ebp - 0x24], esi
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
jmp 0x41042a
mov dword [ebp - 0x34], esi
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x24], ebx
jg 0x410526
mov edx, dword [edi + 0x24]
push edx
push esi
call fcn.0041007b
add esp, 8
mov dword [ebp - 0x28], eax
test eax, eax
je 0x410526
mov ecx, dword [ebp - 0x34]
lea edx, [eax + ecx*2]
xor esi, esi
mov ebx, dword [ebp + 8]
mov si, word [edx + ebx]
mov dword [ebp - 0x34], esi
cmp esi, dword [edi + 0x14]
jae 0x410526
mov eax, dword [edi + 0x1c]
push eax
mov edi, dword [ebp - 0x1c]
push edi
call fcn.0041007b
add esp, 8
mov dword [ebp - 0x28], eax
test eax, eax
je 0x410526
lea ecx, [eax + esi*4]
mov eax, dword [ecx + ebx]
mov dword [ebp - 0x44], eax
mov ecx, dword [edi + 0x78]
cmp eax, ecx
jb 0x4103c6
mov edx, dword [edi + 0x7c]
add edx, ecx
cmp eax, edx
jae 0x4103c6
jmp 0x410526
inc edi
mov dword [ebp - 0x3c], edi
inc edx
jmp 0x410467
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret