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

Disassembly:
cmp eax, 4
jl 0x559800
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
add esp, 0xc
push edx
mov edx, dword [ebp - 0x418]
push ebx
push eax
push edi
lea ecx, [ebp - 0x20c]
push ecx
push edx
jmp 0x486ea2
add esi, edi
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], edx
test edx, edx
je 0x43de61
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43de53
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
je 0x4b73f0
mov dword [ebp - 0x414], ecx
cmp dword [esi + 0x18], ecx
jbe 0x4a5813
mov eax, dword [esi + 0x20]
add eax, edi
jmp 0x4dfc84
call fcn.004a3c8a
add esp, 0x18
mov esi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00507793
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
jne 0x486ede
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x418]
push eax
call fcn.0046b2b5
add esp, 4
add esi, eax
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00507793
jmp 0x4a3c86
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x4a57ee
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a5826
mov eax, dword [ebp - 0x414]
add dword [ebp - 0x410], 4
inc eax
mov dword [ebp - 0x414], eax
cmp eax, dword [esi + 0x18]
jb 0x4dfc8f
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00507793
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x414]
cmp ecx, 0xffffffff
je 0x4a5813
jmp dword [0x4a583f]
cmp dword [ebp + 0x10], 0
movzx eax, word [ebp + 0x14]
je 0x4b740f
mov edx, dword [esi + 0x24]
lea eax, [edx + ecx*2]
mov cx, word [eax + edi]
add cx, word [esi + 0x10]
movzx eax, cx
movzx edx, ax
sub edx, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
lea ecx, [eax + edx*4]
mov esi, dword [ecx + edi]
mov eax, dword [ebx + edi + 0x78]
cmp esi, eax
jb 0x486ebd
mov edx, dword [ebx + edi + 0x7c]
add edx, eax
cmp esi, edx
ja 0x486ebd
mov ebx, dword [ebp - 0x420]
test ebx, ebx
je 0x4f0211
jmp dword [0x4b744d]
mov dword [ebp - 0x410], eax
jmp 0x4dfc95
mov eax, dword [ebp - 0x410]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
add eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a57e9
test dl, dl
je 0x4a57e2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a57e9
add eax, 2
add ecx, 2
test dl, dl
jne 0x4dfc9f
jmp 0x4a57e2
lea eax, [esi + edi]
lea edx, [ebp - 0x10c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4f021c
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x10c]
mov eax, 0x2e
jmp 0x5597dc
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [str.__fj]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 0x3c]
mov esi, dword [ebx + edi + 0x78]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0xc]
jmp 0x43de3a
push edx
mov word [ebp - 0x40c], ax
call dword [sym.imp.msvcrt.dll_strstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x486ede
mov byte [edi], 0
inc edi
xor eax, eax
lea ecx, [ecx]
lea ecx, [eax + 1]
imul ecx, ecx, 0x619
xor cx, word [eax*2 + 0x56b2ec]
inc eax
mov word [ebp + eax*2 - 0x30e], cx
jmp 0x435e48