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

Disassembly:
sub esp, 0x18
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, ecx
mov al, byte [ebp]
mov ecx, dword [0xab5b48]
test al, al
push edi
mov dword [esp + 0x1c], ecx
mov byte [esp + 0xf], 0
jne 0x4f54f7
mov byte [esp + 0xf], 1
movsx eax, word [esi]
push eax
call fcn.004fa330
push 1
mov ecx, eax
mov dword [esp + 0x24], eax
call fcn.004d8a80
mov eax, dword [esi + 0x4c]
mov edi, 0xf9
cmp eax, edi
jle 0x4f556e
mov ecx, esi
call fcn.004f44c0
cmp dword [esi + 0x4c], edi
jle 0x4f556e
mov al, byte [esp + 0xf]
test al, al
jne 0x4f59b2
push 0xfa
push str.Trick_Limit___d__Reached_n
call fcn.00535ef0
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x3c]
add esp, 8
mov eax, dword [edx + ecx*4 - 4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax]
add edx, ecx
mov ecx, esi
mov dword [eax], edx
mov eax, dword [esi + 0x50]
inc eax
mov dword [esi + 0x50], eax
call fcn.004f6460
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0xc
mov ecx, dword [0xb084b8]
test ecx, ecx
jne 0x4f55a6
mov edx, dword [str.Null_Pointer]
push edx
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov ecx, dword [0xb084b8]
add esp, 0xc
test ecx, ecx
jne 0x4f55a6
call fcn.0052ff20
mov ecx, dword [0xb084b8]
mov eax, dword [ecx + 0xe4]
push ebx
push eax
call fcn.00533cd0
push ebp
call fcn.00413eb0
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x44]
mov edi, ebx
shr edi, 1
add esp, 4
and edi, 6
cmp eax, 0xfa
mov dword [esp + 0x18], edi
jge 0x4f56b2
mov eax, dword [0xb084b8]
test eax, eax
jne 0x4f560c
mov eax, dword [str.Null_Pointer]
push eax
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov eax, dword [0xb084b8]
add esp, 0xc
test eax, eax
jne 0x4f560c
call fcn.0052ff20
mov ecx, dword [0xb084b8]
push 0
push 1
push 0x98
call fcn.00533b80
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x40]
cmp eax, ecx
jg 0x4f568d
mov ebp, dword [esi + 0x48]
add ebp, eax
lea ecx, [ebp*4]
push ecx
call fcn.00534d50
mov ecx, dword [esi + 0x40]
mov ebx, eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x4f5661
mov edx, dword [esi + 0x3c]
inc eax
mov ecx, dword [edx + eax*4 - 4]
mov dword [ebx + eax*4 - 4], ecx
mov ecx, dword [esi + 0x40]
cmp eax, ecx
jl 0x4f564e
mov eax, dword [esi + 0x40]
cmp eax, ebp
jge 0x4f5677
mov ecx, ebp
lea edi, [ebx + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
mov edx, dword [esi + 0x3c]
push edx
call fcn.00534e70
mov dword [esi + 0x3c], ebx
mov ebx, dword [esp + 0x38]
add esp, 4
mov dword [esi + 0x40], ebp
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
mov dword [ecx + eax*4], edx
mov eax, dword [esi + 0x44]
inc eax
mov dword [esi + 0x44], eax
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + eax*4 - 4]
mov dword [edx], 0
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + eax*4 - 4]
mov ecx, dword [eax]
add ecx, edx
mov dword [eax], ecx
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + eax*4 - 4]
mov eax, dword [esp + 0x14]
mov dword [edx + 0xc], eax
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + ecx*4 - 4]
mov dword [eax + 0x10], edi
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + ecx*4 - 4]
mov dword [eax + 0x14], ebx
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + ecx*4 - 4]
mov dword [eax + 8], 0
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + ecx*4 - 4]
mov byte [eax + 0x18], 0
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + ecx*4 - 4]
mov byte [eax + 0x58], 0
mov al, byte [esp + 0x13]
test al, al
jne 0x4f57fa
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
mov edx, ebp
mov eax, dword [eax + ecx*4 - 4]
mov cl, byte [ebp]
add eax, 0x18
test cl, cl
je 0x4f575b
mov cl, byte [edx]
cmp cl, 0x20
jne 0x4f5750
mov byte [eax], 0x5c
inc eax
mov byte [eax], 0x5f
jmp 0x4f5752
mov byte [eax], cl
mov cl, byte [edx + 1]
inc eax
inc edx
test cl, cl
jne 0x4f5740
mov byte [eax], 0
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x44]
mov eax, dword [edx + ecx*4 - 4]
add eax, 0x18
push eax
mov eax, dword [edx + ecx*4 - 4]
add eax, 0x58
test bl, 0x20
je 0x4f577f
push str.c2_sc0
jmp 0x4f5784
push 0x5a9208
push eax
call fcn.0057492c
mov ebp, dword [esi + 0x44]
add esp, 0xc
sub ebp, 2
test ebp, ebp
jl 0x4f57fa
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + ebp*4], 0
jne 0x4f57b9
mov edx, dword [str.Null_Pointer]
push edx
push 0xe6
push str..core_DynamicTable.h
call fcn.00401090
add esp, 0xc
mov eax, dword [esi + 0x3c]
or ecx, 0xffffffff
mov edx, dword [eax + ebp*4]
xor eax, eax
add edx, 0x58
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4f57d3
dec ebp
jmp 0x4f5793
cmp byte [ecx + edx - 1], 0x20
jne 0x4f57df
mov byte [ecx + edx - 1], 0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, dword [str._]
dec edi
mov dword [edi], ecx
mov dl, byte [0x5a9204]
mov byte [edi + 4], dl
mov eax, dword [esi + 0x4c]
mov edx, dword [esi + 0x54]
lea ecx, [eax - 1]
cmp edx, ecx
jne 0x4f580a
mov dword [esi + 0x58], eax
test bl, 2
je 0x4f5812
mov dword [esi + 0x54], eax
mov ecx, dword [esp + 0x20]
call fcn.004fa670
test bl, 0x50
jne 0x4f5901
mov ecx, eax
call fcn.004e54d0
test al, al
je 0x4f5901
mov eax, dword [esi + 0x2c]
lea ebp, [esi + 0x28]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], ecx
je 0x4f5869
mov edx, dword [esp + 0x14]
mov edi, dword [eax]
cmp edi, edx
je 0x4f585f
mov edi, dword [ebp + 0x10]
inc edi
mov dword [ebp + 0x10], edi
mov eax, dword [eax + 8]
cmp eax, ecx
jne 0x4f5845
jmp 0x4f5869
mov dword [ebp + 0xc], eax
mov edi, dword [eax + 4]
test edi, edi
jne 0x4f58db
mov eax, dword [0xb084b8]
test eax, eax
jne 0x4f5898
mov eax, dword [str.Null_Pointer]
push eax
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov eax, dword [0xb084b8]
add esp, 0xc
test eax, eax
jne 0x4f5898
call fcn.0052ff20
mov ecx, dword [0xb084b8]
push 0
push 1
push 0x24
call fcn.00533b80
mov ecx, dword [esp + 0x14]
mov edi, eax
lea edx, [esp + 0x34]
mov dword [esp + 0x34], ecx
push edi
push edx
mov ecx, ebp
call fcn.004f7920
lea eax, [edi + 0x14]
mov ecx, 4
mov dword [eax - 0x10], 0
mov dword [eax], 0
add eax, 4
dec ecx
jne 0x4f58c8
mov eax, dword [esp + 0x18]
mov ebx, dword [esi + 0x3c]
mov ecx, dword [edi + eax*4 + 4]
mov edx, dword [edi + eax*4 + 0x14]
add ecx, edx
mov edx, dword [esi + 0x44]
mov edx, dword [ebx + edx*4 - 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + eax*4 + 0x14]
inc ecx
mov dword [edi + eax*4 + 0x14], ecx
jmp 0x4f5912
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + eax*4 - 4]
mov dword [edx + 4], 0
mov ecx, dword [esi + 0x4c]
mov al, byte [esp + 0x13]
inc ecx
pop ebx
test al, al
mov dword [esi + 0x4c], ecx
jne 0x4f5925
inc dword [esi + 0x50]
mov al, byte [esi + 0x78]
test al, al
je 0x4f593e
mov eax, dword [esp + 0x28]
push eax
push str.Adding_trick__s_n
call fcn.00535ef0
add esp, 8
mov ecx, esi
call fcn.004f6460
mov ecx, esi
call fcn.004f6720
mov ecx, dword [esp + 0x20]
call fcn.004ca780
push eax
mov ecx, esi
call fcn.004f4ad0
call fcn.0053c030
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0xc]
push ecx
push edx
mov ecx, esi
mov dword [esi + 8], 0
call fcn.004f6d90
mov eax, dword [0xb084b8]
test eax, eax
jne 0x4f59a7
mov eax, dword [str.Null_Pointer]
push eax
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov eax, dword [0xb084b8]
add esp, 0xc
test eax, eax
jne 0x4f59a7
call fcn.0052ff20
mov ecx, dword [0xb084b8]
call fcn.00533d40
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0xc