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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d1c4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
lea edx, [eax + 0x14]
mov ecx, 4
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
lea edx, [eax + 0x10]
mov ecx, 4
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
lea edx, [eax + 0x2c]
mov ecx, 0x10
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
lea edx, [eax + 0x7c]
mov ecx, 1
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0xc], 0
jle 0x4d1c14
mov dl, 1
mov eax, dword [0x4ce920]
call fcn.00404100
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4d1c0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x4d1bf7
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
push 0x4d1c64
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 8]
inc eax
call fcn.0040c36c
push dword [ebp - 0x50]
push 0x4d1c70
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.004053c0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.004d8e20
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.004d8bf4
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x15]
mov ecx, 1
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dl, byte [ebp - 0x15]
mov eax, dword [ebp - 0x1c]
call fcn.004d9224
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, dword [ebp - 0x10]
dec ebx
test ebx, ebx
jl 0x4d1ba4
inc ebx
lea edx, [ebp - 0x48]
mov ecx, 0x28
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
lea edx, [ebp - 0x48]
mov ecx, esi
mov eax, dword [ebp - 0x14]
call fcn.004d1464
dec ebx
jne 0x4d1b78
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0x1c]
call fcn.004dcdc4
cmp byte [ebp - 0x15], 0
je 0x4d1beb
mov ebx, dword [ebp - 0x10]
dec ebx
test ebx, ebx
jl 0x4d1bdc
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [ebp - 0x1c]
call fcn.004d9088
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0xf8]
inc edi
dec ebx
jne 0x4d1bc3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0x78]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x20], eax
inc dword [ebp - 8]
dec dword [ebp - 0x20]
jne 0x4d1b04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1c33
mov eax, dword [ebp - 0x14]
call fcn.00404130
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.004d8bc0
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x320
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x258
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1c55
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00405048
ret