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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov eax, edx
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [esp + 0x20], eax
mov ebx, esi
mov dword [esp + 0x1c], ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ebx
mov dword [eax], esi
call fcn.004a5fab
test eax, eax
jne 0x4a8261
mov edi, dword [ebp + 8]
cmp byte [0x4e29fc], bl
je 0x4a7e86
test edi, 0x8000
je 0x4a7e8c
mov dword [esp + 0x14], esi
jmp 0x4a7ea9
test edi, 0x10000
je 0x4a7e9e
mov dword [esp + 0x14], 1
jmp 0x4a7ea9
movzx eax, byte [0x4e29fd]
mov dword [esp + 0x14], eax
test edi, 0x40000
je 0x4a7eb9
and edi, 0xfffdffff
jmp 0x4a7ec7
cmp dword [0x4e2ac0], ebx
je 0x4a7ec7
or edi, 0x20000
push esi
and edi, 0xfff600e7
push 0x218
mov dword [ebp + 8], edi
call fcn.0043f119
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4a8209
cmp dword [esp + 0x14], ebx
je 0x4a7ef4
mov dword [esi + 0xc], 8
mov eax, edi
mov dword [esi + 0x14], 2
and eax, 0x2000000
mov byte [esi + 0x61], 0x6d
neg eax
mov dword [esi + 0x130], 1
push 0x30
sbb eax, eax
and eax, 0xffffff00
add eax, 0xff
mov dword [esi + 0x48], eax
lea eax, [esi + 0x1cc]
mov dword [esi + 0x10], eax
xor eax, eax
mov word [esi + 0x134], ax
lea eax, [esi + 0x78]
push 0x4cc870
push eax
call fcn.004b1c10
xor edx, edx
mov byte [esi + 0x55], 1
add esp, 0xc
mov dword [esi + 0xa4], edx
mov byte [esi + 0x5a], 0xff
mov eax, dword [0x4e2aa0]
mov ecx, dword [0x4e2aa4]
or dword [esi + 0x20], 0xe00480e0
push edx
push fcn.004a678a
push edx
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x34], ecx
mov ecx, esi
mov dword [esi + 0x64], edx
mov dword [esi + 0x1b8], edx
mov dword [esi + 0x1b4], edx
mov dword [esi + 0x1b0], edx
mov dword [esi + 0x1bc], edx
mov dword [esi + 0x18c], edx
mov dword [esi + 0x188], edx
mov dword [esi + 0x184], edx
mov dword [esi + 0x190], edx
mov edx, 0x4ccdf0
push 1
mov dword [esi + 0xb8], 0x4e3848
mov dword [esi + 0x24], eax
call fcn.004a77cb
push 0
push fcn.004a678a
push 0
push 3
mov edx, 0x4ccdf0
mov ecx, esi
call fcn.004a77cb
push 0
push fcn.004a678a
push 0
push 2
mov edx, 0x4ccdf0
mov ecx, esi
call fcn.004a77cb
push 0
push 0x4a67f7
push 0
push 1
mov edx, str.NOCASE
mov ecx, esi
call fcn.004a77cb
add esp, 0x40
mov edx, str.RTRIM
mov ecx, esi
push 0
push 0x4a67b5
push 0
push 1
call fcn.004a77cb
add esp, 0x10
cmp byte [esi + 0x57], bl
jne 0x4a8209
push 7
pop eax
mov ecx, edi
mov dword [esi + 0x3c], edi
and ecx, eax
xor eax, eax
inc eax
shl eax, cl
test al, 0x46
jne 0x4a8050
mov ecx, 0x2aeb9
call fcn.004a847a
jmp 0x4a8076
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [ebp + 8]
push esi
push eax
call fcn.004a7928
mov edi, dword [ebp + 8]
add esp, 0x10
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4a80d8
push 7
pop ecx
cmp eax, ecx
jne 0x4a808c
mov ecx, esi
call fcn.0043f47b
xor ecx, ecx
mov eax, 0x4d29f0
test ebx, ebx
push ebx
cmove eax, ecx
push eax
push dword [esp + 0x1c]
push esi
call fcn.00441a9e
add esp, 0x10
test ebx, ebx
je 0x4a8209
cmp dword [0x4e29f8], 0
push ebx
je 0x4a80cd
call dword [0x4e2a24]
sub dword [0x4e6320], eax
dec dword [0x4e6344]
pop ecx
push ebx
call dword [0x4e2a1c]
jmp 0x4a8208
mov eax, dword [esi + 0x10]
or edi, 0x100
mov ecx, dword [esi]
add eax, 4
push edi
mov edi, dword [esp + 0x14]
mov edx, edi
push 0
push eax
push esi
call fcn.0044f8f3
add esp, 0x10
test eax, eax
je 0x4a8116
cmp eax, 0xc0a
push 7
pop ecx
cmove eax, ecx
mov ecx, esi
mov edx, eax
call fcn.00441a4d
jmp 0x4a820d
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
mov ecx, esi
mov edx, dword [esi + 0x10]
mov edx, dword [edx + 4]
call fcn.0047a121
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0xc], eax
cmp byte [esi + 0x57], 0
jne 0x4a814d
mov eax, dword [esi + 0x10]
mov ecx, esi
mov edx, dword [eax + 0xc]
mov dl, byte [edx + 0x4d]
call fcn.00479ca1
xor edx, edx
mov ecx, esi
call fcn.0047a121
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [eax], str.main
mov eax, dword [esi + 0x10]
mov byte [eax + 8], 3
mov eax, dword [esi + 0x10]
mov dword [eax + 0x10], str.temp
mov eax, dword [esi + 0x10]
mov byte [eax + 0x18], 1
cmp byte [esi + 0x57], 0
mov byte [esi + 0x61], 0x76
jne 0x4a820d
xor edx, edx
mov ecx, esi
call fcn.00441a4d
push 2
push str.MATCH
push esi
call fcn.004a72cd
add esp, 0xc
push 7
pop ecx
cmp eax, ecx
jne 0x4a81b2
mov ecx, esi
call fcn.0043f47b
push esi
call fcn.004a7743
pop ecx
test eax, eax
jne 0x4a81d5
mov edi, 0x4cb718
cmp edi, str.rank
jge 0x4a8228
push esi
call dword [edi]
add edi, 4
pop ecx
test eax, eax
je 0x4a81c2
mov edx, eax
mov ecx, esi
call fcn.00441a4d
push dword [0x4e2a10]
xor edx, edx
mov ecx, esi
push dword [0x4e2a0c]
call fcn.004a6346
pop ecx
mov dword [esi + 0x110], 0x4a745b
mov dword [esi + 0x114], 0x3e8
pop ecx
mov edi, dword [esp + 0x10]
push esi
call fcn.004a7743
mov ebx, eax
pop ecx
cmp bl, 7
jne 0x4a823c
xor edx, edx
mov ecx, esi
call fcn.004a69ac
xor esi, esi
jmp 0x4a8244
mov ecx, esi
call fcn.0048276a
push esi
call fcn.004a7743
pop ecx
test eax, eax
jne 0x4a8209
jmp 0x4a81de
test ebx, ebx
je 0x4a8244
mov byte [esi + 0x61], 0xba
mov eax, dword [esp + 0x24]
mov dword [eax], esi
test edi, edi
je 0x4a825f
mov ecx, edi
call fcn.004a8b1f
add eax, 0xfffffffc
push eax
call fcn.0043eeb4
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret