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

Disassembly:
sub esp, 0xf4
mov eax, dword [0x613ad0]
xor eax, esp
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0xfc]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x104]
push 0x20
mov dword [esp + 0x38], eax
xor eax, eax
push ecx
push esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x78], al
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
call fcn.004e08a0
add esp, 0xc
test eax, eax
jne 0x4c564c
cmp dword [esp + 0x11c], eax
jl 0x4c4fb9
mov eax, dword [esp + 0x104]
mov edx, dword [esi + 0x138]
mov ecx, dword [edx + eax*4]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4c564c
mov edx, dword [esp + 0x11c]
cmp edx, dword [eax + 0x9c]
jge 0x4c564c
mov eax, dword [eax + 0xa0]
mov ecx, edx
imul ecx, ecx, 0x74
add eax, ecx
mov ecx, dword [eax + 0x68]
mov eax, dword [eax + 0x6c]
jmp 0x4c4fee
mov edx, dword [esp + 0x100]
mov eax, dword [esi + 0x2b38]
imul edx, edx, 0x58
add eax, edx
test byte [eax + 0x18], 8
je 0x4c564c
mov eax, dword [eax + 0x20]
mov edx, dword [esi + 0x2b50]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
push eax
push ecx
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
call fcn.004c0620
add esp, 0xc
test eax, eax
mov dword [esp + 0xc], eax
je 0x4c564c
push ebx
push ebp
push edi
mov edi, eax
cmp dword [edi + 4], 0x17
mov eax, dword [sym.imp.KERNEL32.dll_MulDiv]
jne 0x4c5045
movzx eax, byte [edi + 0x25]
push eax
lea ecx, [esp + 0x7c]
push 0x5e92b8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x4c5222
cmp dword [esp + 0x12c], 0
mov edx, dword [edi + 0x5c]
push 0x5a0
je 0x4c505f
mov ecx, dword [esi + 0x510]
jmp 0x4c5065
mov ecx, dword [esi + 0x500]
push ecx
push edx
call eax
lea eax, [edi + 0x24]
mov dword [esp + 0x24], eax
movzx eax, byte [eax]
cmp eax, 0x32
mov dword [esp + 0x28], eax
jge 0x4c5649
cmp dword [esp + 0x12c], 0
mov edi, dword [esp + 0x18]
push 0x5a0
je 0x4c50a0
mov eax, dword [esi + 0x510]
mov ecx, dword [edi + 0x5c]
push eax
push ecx
jmp 0x4c50ab
mov edx, dword [esi + 0x500]
mov eax, dword [edi + 0x5c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
add dword [esp + 0x24], 1
xor edx, edx
mov dword [esp + 0x30], eax
xor eax, eax
cmp dword [esp + 0x28], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jle 0x4c5222
mov ecx, dword [esp + 0x24]
mov cl, byte [edx + ecx]
cmp cl, 9
jbe 0x4c50ec
mov byte [esp + eax + 0x78], cl
add eax, 1
mov dword [esp + 0x14], eax
jmp 0x4c5211
mov edx, dword [esp + 0x128]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
movzx edi, cl
mov ecx, dword [esp + 0x114]
push ebp
push edi
push eax
push ecx
push esi
call fcn.004c2880
add esp, 0x18
cmp ebp, edi
mov ebx, eax
jne 0x4c511d
mov dword [esp + 0x34], ebx
mov edx, dword [esp + 0x1c]
push edi
push edx
push esi
call fcn.004c0620
mov ebp, dword [eax + 4]
add esp, 0xc
cmp edi, dword [esp + 0x20]
jge 0x4c5171
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x58], 8
je 0x4c5171
cmp ebp, 0xff
je 0x4c5179
xor ebp, ebp
push ebx
lea eax, [esp + 0x5c]
push 0x5e92b4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp ebp, 1
je 0x4c51d6
cmp ebp, 2
je 0x4c51d6
mov dword [esp + 0x2c], 0
jmp 0x4c51de
cmp ebp, 0xff
jne 0x4c5180
mov byte [esp + 0x58], 0
jmp 0x4c515d
cmp ebp, 3
jne 0x4c519f
push 1
lea edx, [esp + 0x5c]
push ebx
push edx
call fcn.004dfba0
add esp, 0xc
mov dword [esp + 0x2c], 0
jmp 0x4c51de
cmp ebp, 4
jne 0x4c51be
push 0
lea eax, [esp + 0x5c]
push ebx
push eax
call fcn.004dfba0
add esp, 0xc
mov dword [esp + 0x2c], 0
jmp 0x4c51de
cmp ebp, 1
jne 0x4c53df
push ebp
push ebx
lea ecx, [esp + 0x60]
push ecx
call fcn.004dfc00
add esp, 0xc
mov dword [esp + 0x2c], 1
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x7c]
push eax
mov byte [esp + ecx + 0x80], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
add edx, 1
cmp edx, dword [esp + 0x28]
mov dword [esp + 0x10], edx
jl 0x4c50d0
lea edx, [esp + 0x78]
push edx
mov byte [esp + eax + 0x7c], 0
call fcn.004e1c70
add esp, 4
cmp dword [edi + 8], 1
jne 0x4c5254
lea edi, [esp + 0x78]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4c5241
mov ax, word [0x5e9178]
mov word [edi], ax
mov edi, dword [esp + 0x124]
mov edx, dword [esi + 0x3434]
imul edi, edi, 0x170
mov ecx, dword [esp + 0x18]
mov ebp, dword [ecx + 0x20]
lea eax, [edi + edx + 8]
push eax
lea ecx, [esp + 0xe0]
push ecx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
imul ebp, ebp, 0x170
mov edx, dword [esi + 0x3434]
mov ecx, dword [edi + edx + 0x2c]
and dword [edi + edx + 0x134], 0xfffffffe
lea eax, [edi + edx]
mov eax, dword [esi + 0x3434]
mov edx, dword [eax + edi + 0x134]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + edi + 0x30]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + edi + 0x34]
mov dword [esp + 0x20], ecx
lea ecx, [eax + 8]
mov dword [esp + 0x28], edx
push ecx
lea edx, [eax + ebp + 8]
push edx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4c52f8
mov eax, dword [esi + 0x3434]
lea ecx, [eax + ebp + 8]
push ecx
lea edx, [esp + 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 1
mov eax, dword [esi + 0x39a8]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x10], ecx
jle 0x4c5328
mov edx, dword [esi + 0x3434]
mov ecx, dword [esi + 0x3894]
mov edx, dword [edx + ebp + 0x2c]
cmp edx, dword [ecx + 0x68]
mov ecx, 1
jne 0x4c5326
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x4c5339
mov eax, dword [esi + 0x3434]
mov edx, dword [eax + ebp + 0x2c]
cmp edx, dword [eax + 0x2c]
jne 0x4c533d
test ecx, ecx
je 0x4c534e
mov eax, dword [esi + 0x3434]
mov ecx, dword [eax + ebp + 0x2c]
mov dword [esp + 0x24], ecx
add ebx, 1
mov ecx, dword [esi + 0x3434]
mov eax, dword [ecx + ebp + 0x134]
test eax, eax
jne 0x4c5368
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x60], eax
je 0x4c536f
mov dword [esp + 0x1c], eax
add ebx, 1
mov eax, ecx
mov edx, dword [eax + ebp + 0x30]
cmp edx, dword [eax + 0x30]
je 0x4c538c
mov eax, dword [ecx + ebp + 0x30]
cmp eax, 0x10101
je 0x4c538c
mov dword [esp + 0x20], eax
add ebx, 1
mov eax, ecx
mov edx, dword [eax + ebp + 0x34]
cmp edx, dword [eax + 0x34]
je 0x4c53aa
mov eax, dword [ecx + ebp + 0x34]
cmp eax, dword [esi + 0x4b08]
je 0x4c53aa
mov dword [esp + 0x28], eax
add ebx, 1
test ebx, ebx
jne 0x4c5498
test byte [edi + ecx + 0x134], 1
mov eax, dword [esp + 0x124]
mov dword [esp + 0x14], eax
je 0x4c5519
push ebx
push 1
mov ecx, eax
push ecx
push esi
call fcn.004ab920
add esp, 0x10
jmp 0x4c5515
cmp ebp, 2
jne 0x4c53f1
push 0
push ebx
lea edx, [esp + 0x60]
push edx
jmp 0x4c51ce
cmp ebp, 6
jne 0x4c5430
mov eax, dword [eax + 0x20]
mov ecx, dword [esi + 0x3434]
imul eax, eax, 0x170
mov edx, dword [eax + ecx + 0x134]
and edx, 0x30000
push edx
push 0
lea eax, [esp + 0x60]
push ebx
push eax
call fcn.004e4a90
add esp, 0x10
mov dword [esp + 0x2c], 0
jmp 0x4c51de
cmp ebp, 7
jne 0x4c546e
mov ecx, dword [eax + 0x20]
mov edx, dword [esi + 0x3434]
imul ecx, ecx, 0x170
mov eax, dword [ecx + edx + 0x134]
and eax, 0x30000
push eax
push 1
lea ecx, [esp + 0x60]
push ebx
push ecx
call fcn.004e4a90
add esp, 0x10
mov dword [esp + 0x2c], 0
jmp 0x4c51de
cmp ebp, 0x16
jne 0x4c5149
push ebx
lea edx, [esp + 0x5c]
push str._02ld
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [esp + 0x2c], 0
jmp 0x4c51de
cmp ebx, 5
jge 0x4c5519
mov edx, dword [esi + 0x138]
mov eax, dword [esp + 0x110]
mov edx, dword [edx + eax*4]
mov eax, dword [edx + 0x30]
mov edx, dword [esi + 0x72c]
imul eax, eax, 0x98
mov eax, dword [edx + eax + 0x54]
movzx ecx, byte [ecx + ebp + 0x29]
push eax
push 0
push ecx
push 0
push 0
push 0
mov edx, dword [esp + 0x40]
push 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x10101
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esi + 0x3a0]
lea eax, [esp + 0x128]
push eax
push ecx
push edx
push esi
call fcn.004a9100
add esp, 0x5c
mov dword [esp + 0x14], eax
cmp dword [esp + 0x12c], 0
je 0x4c553b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x3438]
mov edi, dword [esi + 0x3a4]
shl eax, 5
mov eax, dword [eax + ecx]
jmp 0x4c5554
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x3434]
imul edx, edx, 0x170
mov edi, dword [esi + 0x3a0]
mov eax, dword [edx + eax]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call ebp
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x7c]
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x80]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov ecx, dword [esp + 0x50]
push ebx
push edi
mov dword [esp + 0x18], ecx
call ebp
mov edx, dword [esp + 0x18]
cmp dword [edx + 8], 0
jne 0x4c563b
cmp dword [esp + 0x2c], 0
je 0x4c55a9
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x10c]
mov eax, dword [esi + 0x2b38]
imul edi, edi, 0x58
mov ebx, dword [esp + 0x12c]
lea ecx, [edi + eax]
mov eax, dword [ecx + 0x14]
add eax, dword [ecx + 0xc]
test ebx, ebx
push 0x5a0
je 0x4c55db
mov ecx, dword [esi + 0x510]
push ecx
jmp 0x4c55e2
mov edx, dword [esi + 0x500]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x10]
xor edx, edx
test ebx, ebx
sete dl
lea ebp, [eax + ecx]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x48]
push edx
mov edx, dword [esi + 0x2b38]
push 0
push eax
mov eax, dword [edi + edx + 0x1c]
imul eax, eax, 0xb8
add eax, dword [esi + 0x387c]
push ecx
mov ecx, dword [esp + 0x11c]
push ebp
push eax
push ecx
push esi
call fcn.004f7330
mov eax, dword [esp + 0x68]
add esp, 0x20
sub eax, ebp
jns 0x4c5637
xor eax, eax
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x10], eax
jge 0x4c5649
mov dword [esp + 0x10], eax
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 0x38]
test eax, eax
pop esi
je 0x4c565a
mov edx, dword [esp]
mov dword [eax], edx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4c566e
lea ecx, [esp + 0x68]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4c567c
mov edx, dword [esp + 4]
mov dword [eax], edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4c568a
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
mov eax, 1
call fcn.005aac48
add esp, 0xf4
ret