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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
test edx, edx
mov dword [ebp - 0x34], eax
mov ebx, ecx
mov dword [ebp - 0x38], edx
je 0x61053470
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [ebp - 0x3c], eax
sub esp, 4
mov edx, dword [ebp - 0x3c]
xor eax, eax
cmp word [edx], 0x5a4d
je 0x6105347d
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x34]
cmp word [eax], 0x5a4d
mov dword [ebp - 0x3c], eax
jne 0x6105348d
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edx + 0x3c]
add edx, ecx
cmp dword [edx], 0x4550
je 0x61053497
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
test edx, edx
je 0x6105348d
movzx eax, word [edx + 0x5c]
mov ecx, dword [edx + 0x80]
mov word [ebx], ax
xor eax, eax
test ecx, ecx
je 0x61053463
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x610536e5
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
sub ecx, eax
lea ebx, [ecx + edx]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov dword [esp], edx
call sym.cygwin1.dll__strlen
add eax, 0x22
and eax, 0xfffffff0
call sym.cygwin1.dll__alloca
lea eax, [esp + 0x17]
and eax, 0xfffffff0
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x61053555
nop
mov eax, dword [ebp - 0x40]
mov edi, 0x611246e4
mov esi, dword [ebx + 0xc]
sub esi, eax
mov eax, dword [ebp - 0x3c]
add esi, eax
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x61053527
xor al, byte [eax + 0x61106b3c]
cmp al, byte [edi - 1]
jne 0x61053532
test al, al
jne 0x61053518
mov eax, 1
jmp 0x61053534
xor eax, eax
test eax, eax
jne 0x610535f6
add ebx, 0x14
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x61053500
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x20]
jmp 0x61053560
xor eax, eax
mov esi, esi
lea edi, [edi]
test eax, eax
jne 0x61053463
mov dword [esp], 0xffffffff
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call sym.makename_char_const__char__int__int_
mov dword [ebp - 0x28], eax
test eax, eax
je 0x610536cd
mov ebx, dword [0x61106558]
cmp word [ebx], 0x5a4d
jne 0x61053550
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x61053550
cmp word [eax + 0x14], 0
je 0x61053550
mov edi, dword [eax + 0x78]
add edi, ebx
je 0x61053550
mov eax, dword [edi + 0x20]
xor esi, esi
mov edx, dword [edi + 0x1c]
add eax, ebx
add edx, ebx
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x48], edx
test eax, eax
je 0x61053550
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + esi*4]
add eax, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym.cygwin1.dll__strcmp
test eax, eax
je 0x61053730
inc esi
cmp dword [edi + 0x18], esi
ja 0x610535c9
mov eax, dword [ebp - 0x20]
jmp 0x61053560
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x6105374d
mov dword [ebp - 0x2c], 0xffffffff
nop
lea esi, [esi]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x61053560
mov dword [esp], 1
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call sym.makename_char_const__char__int__int_
mov dword [ebp - 0x28], eax
test eax, eax
je 0x610536d5
mov eax, dword [ebx]
test eax, eax
je 0x61053610
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebx + 0x10]
mov edi, edx
lea esi, [eax + edx]
add edi, ecx
jmp 0x61053656
add edi, 4
add esi, 4
mov eax, dword [esi]
test eax, eax
je 0x61053610
test eax, eax
js 0x61053650
mov edx, dword [ebp - 0x3c]
lea eax, [eax + edx + 2]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym.cygwin1.dll__strcmp
test eax, eax
jne 0x61053650
mov edx, dword [ebp - 0x24]
mov eax, edi
call sym.putmem__IMAGE_THUNK_DATA32__void_const_
mov dword [ebp - 0x20], eax
test eax, eax
je 0x61053610
mov esi, dword [0x61104ec4]
add esi, 0x2c0
mov eax, dword [esi + 8]
test eax, eax
je 0x610536a7
mov esi, eax
mov eax, dword [esi + 8]
test eax, eax
jne 0x6105369e
mov edx, 0xc
mov eax, 0xa
call sym._cmalloc_8
mov dword [esi + 8], eax
mov edx, dword [ebp - 0x24]
mov dword [eax], edi
mov dword [eax + 8], 0
mov dword [eax + 4], edx
jmp 0x61053610
mov eax, dword [ebp - 0x20]
jmp 0x61053463
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x6105353c
jmp 0x61053560
movzx eax, word [edx + 6]
xor edi, edi
lea esi, [edx + 0xf8]
cmp eax, 0
jle 0x61053716
mov dword [ebp - 0x44], eax
xor ebx, ebx
mov edx, dword [ebx + esi + 0xc]
cmp edx, ecx
ja 0x6105370d
mov eax, edx
add eax, dword [ebx + esi + 8]
cmp eax, ecx
ja 0x61053743
inc edi
add ebx, 0x28
cmp dword [ebp - 0x44], edi
jg 0x610536fb
mov eax, 0xffffffff
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
xor eax, eax
test edx, edx
jns 0x610534c0
jmp 0x61053463
mov eax, dword [ebp - 0x48]
mov edx, dword [eax + esi*4]
add ebx, edx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x20]
jmp 0x61053560
mov edi, dword [ebx + esi + 0x14]
mov eax, edx
sub eax, edi
jmp 0x6105371b
mov eax, str.found_it
jmp 0x61053463