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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov dword [esp + 0x40], edx
mov ebp, ecx
nop
test eax, eax
nop
mov edi, str.01:51:58
mov ebx, str.founding_app_errors_ebx__d_:_ecx__s_:_eax__d__n
push 0x2c
push edi
push 0x14
push ebx
call fcn.00404723
add esp, 0x10
mov esi, dword [ebp + 0x3c]
nop
test eax, eax
nop
push 0x2d
push edi
push 0x15
push ebx
call fcn.00404723
add esp, 0x10
mov esi, dword [ebp + esi + 0x78]
nop
test eax, eax
nop
push 0x2e
push edi
push 0x16
push ebx
call fcn.00404723
add esp, 0x10
nop
test eax, eax
nop
push 0x2f
push edi
push 0x17
push ebx
call fcn.00404723
add esp, 0x10
mov eax, dword [ebp + esi + 0x1c]
add eax, ebp
mov dword [esp + 0x30], eax
nop
test eax, eax
nop
push 0x30
push edi
push 0x18
push ebx
call fcn.00404723
add esp, 0x10
mov eax, dword [ebp + esi + 0x20]
add eax, ebp
mov dword [esp + 0x3c], eax
nop
test eax, eax
nop
push 0x31
push edi
push 0x19
push ebx
call fcn.00404723
add esp, 0x10
mov eax, dword [ebp + esi + 0x24]
add eax, ebp
mov dword [esp + 0x2c], eax
nop
test eax, eax
nop
push 0x32
push edi
push 0x1a
push ebx
call fcn.00404723
add esp, 0x10
nop
test eax, eax
nop
push 0x33
push edi
push 0x1b
push ebx
call fcn.00404723
add esp, 0x10
lea ebx, [esp + 0x10]
mov ecx, ebx
call fcn.00402b2c
push ebx
call sub.msvcrt.dll_atoi
add esp, 4
mov dword [esp + 0x38], esi
cmp eax, dword [ebp + esi + 0x18]
jae 0x404a5b
mov esi, eax
mov dword [esp + 0x34], ebp
nop
test eax, eax
nop
push 0x34
mov edi, str.01:51:58
push edi
push 0x1c
mov ebx, str.founding_app_errors_ebx__d_:_ecx__s_:_eax__d__n
push ebx
call fcn.00404723
add esp, 0x10
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], esi
mov esi, dword [eax + esi*4]
add esi, ebp
nop
test eax, eax
nop
push 0x35
push edi
push 0x1d
push ebx
call fcn.00404723
add esp, 0x10
lea ecx, [esp + 0x10]
push dword [esp + 0x40]
call fcn.004017e8
lea ecx, [esp + 0x20]
push esi
call fcn.004017e8
nop
test eax, eax
nop
push 0x2b
push str.01:51:58
push 0x10
push str.founding_app_errors_ebx__d_:_ecx__s_:_eax__d__n
call fcn.00404723
add esp, 0x10
movzx eax, byte [esp + 0x10]
mov edx, eax
lea ecx, [esp + 0x11]
and dl, 1
mov esi, dword [esp + 0x1c]
je 0x40493c
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
movzx ecx, byte [esp + 0x20]
mov ebx, dword [esp + 0x28]
test cl, 1
mov dword [esp + 8], ecx
je 0x40495c
mov edi, dword [esp + 0x24]
mov dword [esp + 0xc], ebx
jmp 0x40496c
mov edi, ecx
shr edi, 1
lea ecx, [esp + 0x21]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 8]
test edi, edi
mov dword [esp + 0x44], ebx
je 0x40497e
test dl, dl
je 0x404985
mov eax, dword [esp + 0x14]
jmp 0x404987
mov bl, 1
jmp 0x404a05
shr eax, 1
mov ebx, dword [esp + 4]
lea esi, [ebx + eax]
cmp eax, edi
jge 0x404996
mov ebp, esi
jmp 0x4049ee
mov byte [esp + 3], dl
mov ebp, ebx
mov edx, dword [esp + 0xc]
movsx ebx, byte [edx]
sub eax, edi
inc eax
je 0x4049d8
push eax
push ebx
push ebp
call sub.msvcrt.dll_memchr
add esp, 0xc
test eax, eax
je 0x4049e0
mov ebp, eax
push edi
push dword [esp + 0x10]
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4049e2
inc ebp
mov eax, esi
sub eax, ebp
cmp eax, edi
mov ecx, dword [esp + 8]
jge 0x4049a3
mov ebp, esi
mov dl, byte [esp + 3]
jmp 0x4049ea
mov ebp, esi
mov dl, byte [esp + 3]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 4]
cmp ebp, esi
setne al
sub ebp, ebx
cmp ebp, 0xffffffff
setne bl
and bl, al
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
test cl, 1
je 0x404a1d
push dword [esp + 0x44]
call fcn.00409830
add esp, 4
mov dl, byte [esp + 0x10]
and dl, 1
test dl, dl
je 0x404a2d
push dword [esp + 0x18]
call fcn.00409830
add esp, 4
nop
test eax, eax
nop
test bl, bl
jne 0x404a7a
push 0x38
push str.01:51:58
push 0x20
push str.founding_app_errors_ebx__d_:_ecx__s_:_eax__d__n
call fcn.00404723
add esp, 0x10
inc esi
mov eax, dword [esp + 0x38]
cmp esi, dword [ebp + eax + 0x18]
jb 0x4048b5
nop
test eax, eax
nop
push 0x39
push str.01:51:58
push 0x22
push str.founding_app_errors_ebx__d_:_ecx__s_:_eax__d__n
call fcn.00404723
add esp, 0x10
xor ebp, ebp
jmp 0x404a9f
push 0x36
push str.01:51:58
push 0x1e
push str.founding_app_errors_ebx__d_:_ecx__s_:_eax__d__n
call fcn.00404723
add esp, 0x10
mov eax, dword [esp + 0x2c]
movzx eax, word [eax + esi*2]
mov ecx, dword [esp + 0x30]
add ebp, dword [ecx + eax*4]
mov eax, ebp
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret