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

Disassembly:
sub esp, 0x488
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x484], eax
mov eax, dword [esp + 0x48c]
push ebx
push ebp
push esi
mov esi, dword [0x5d65d8]
mov dword [esp + 0xc], eax
push edi
mov edi, dword [0x5d65d4]
cmp esi, 1
jge 0x4d8430
mov ebp, dword [0x5d5364]
mov ebx, dword [0x5d5360]
mov edx, dword [0x5d5358]
jmp 0x4d83e0
add ebx, 0xffffffff
mov dword [0x5d5360], ebx
adc ebp, 0xffffffff
mov dword [0x5d5364], ebp
js 0x4d8406
jg 0x4d83fa
test ebx, ebx
jb 0x4d8406
movzx eax, byte [edx]
inc edx
mov dword [0x5d5358], edx
jmp 0x4d841d
call fcn.004d7600
mov ebp, dword [0x5d5364]
mov ebx, dword [0x5d5360]
mov edx, dword [0x5d5358]
cmp eax, 0xffffffff
je 0x4d8486
mov ecx, esi
add esi, 8
shl eax, cl
or edi, eax
cmp esi, 1
jl 0x4d83e0
mov ecx, dword [esp + 0x10]
mov eax, edi
and eax, 1
shr edi, 1
dec esi
mov dword [ecx], eax
cmp esi, 2
jge 0x4d84c4
mov ebp, dword [0x5d5364]
mov ebx, dword [0x5d5360]
mov edx, dword [0x5d5358]
lea esp, [esp]
add ebx, 0xffffffff
mov dword [0x5d5360], ebx
adc ebp, 0xffffffff
mov dword [0x5d5364], ebp
js 0x4d8494
jg 0x4d847a
test ebx, ebx
jb 0x4d8494
movzx eax, byte [edx]
inc edx
mov dword [0x5d5358], edx
jmp 0x4d84ab
test esi, esi
jns 0x4d8430
mov eax, 1
jmp 0x4d8814
call fcn.004d7600
mov ebp, dword [0x5d5364]
mov ebx, dword [0x5d5360]
mov edx, dword [0x5d5358]
cmp eax, 0xffffffff
je 0x4d84c0
mov ecx, esi
add esi, 8
shl eax, cl
or edi, eax
cmp esi, 2
jl 0x4d8460
jmp 0x4d84c4
test esi, esi
js 0x4d848a
mov ecx, edi
lea eax, [esi - 2]
and ecx, 3
shr edi, 2
mov dword [0x5d65d4], edi
mov dword [0x5d65d8], eax
cmp ecx, 2
jne 0x4d84e9
call fcn.004d8de0
jmp 0x4d8814
test ecx, ecx
jne 0x4d84f7
call fcn.004d9680
jmp 0x4d8814
cmp ecx, 1
jne 0x4d880f
mov eax, dword [0x5d6594]
test eax, eax
jne 0x4d87f3
mov eax, 8
mov dword [0x5d659c], 7
mov ecx, 0x90
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, 9
lea edi, [esp + 0x254]
mov ecx, 0x70
rep stosd dword es:[edi], eax
lea eax, [esp + 0x414]
mov dword [eax], 7
mov dword [eax + 4], 7
mov dword [eax + 8], 7
mov dword [eax + 0xc], 7
mov dword [eax + 0x10], 7
mov dword [eax + 0x14], 7
mov dword [eax + 0x18], 7
mov dword [eax + 0x1c], 7
mov dword [eax + 0x20], 7
mov dword [eax + 0x24], 7
mov dword [eax + 0x28], 7
mov dword [eax + 0x2c], 7
mov dword [eax + 0x30], 7
mov dword [eax + 0x34], 7
mov dword [eax + 0x38], 7
mov dword [eax + 0x3c], 7
mov dword [eax + 0x40], 7
mov dword [eax + 0x44], 7
mov dword [eax + 0x48], 7
mov dword [eax + 0x4c], 7
mov dword [eax + 0x50], 7
mov dword [eax + 0x54], 7
mov dword [eax + 0x58], 7
mov dword [eax + 0x5c], 7
lea eax, [esp + 0x474]
push 0x5d659c
mov dword [eax], 8
push 0x5d6594
push dword [0x5d65c8]
mov dword [eax + 4], 8
push dword [0x5d65c4]
mov dword [eax + 8], 8
mov dword [eax + 0xc], 8
mov dword [eax + 0x10], 8
mov dword [eax + 0x14], 8
mov dword [eax + 0x18], 8
push 0x101
mov dword [eax + 0x1c], 8
lea eax, [esp + 0x28]
push 0x120
push eax
call fcn.004d7c90
mov edi, eax
test edi, edi
je 0x4d8665
mov dword [0x5d6594], 0
jmp 0x4d8814
push 0x5d65a0
push 0x5d6598
push dword [0x5d65cc]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 5
push 0x554458
push 0
push 0x20
push eax
mov dword [esp + 0x34], 5
mov dword [esp + 0x38], 5
mov dword [esp + 0x3c], 5
mov dword [esp + 0x40], 5
mov dword [esp + 0x44], 5
mov dword [esp + 0x48], 5
mov dword [esp + 0x4c], 5
mov dword [esp + 0x50], 5
mov dword [esp + 0x54], 5
mov dword [esp + 0x58], 5
mov dword [esp + 0x5c], 5
mov dword [esp + 0x60], 5
mov dword [esp + 0x64], 5
mov dword [esp + 0x68], 5
mov dword [esp + 0x6c], 5
mov dword [esp + 0x70], 5
mov dword [esp + 0x74], 5
mov dword [esp + 0x78], 5
mov dword [esp + 0x7c], 5
mov dword [esp + 0x80], 5
mov dword [esp + 0x84], 5
mov dword [esp + 0x88], 5
mov dword [esp + 0x8c], 5
mov dword [esp + 0x90], 5
mov dword [esp + 0x94], 5
mov dword [esp + 0x98], 5
mov dword [esp + 0x9c], 5
mov dword [esp + 0xa0], 5
mov dword [esp + 0xa4], 5
mov dword [esp + 0xa8], 5
mov dword [esp + 0xac], 5
mov dword [0x5d65a0], 5
call fcn.004d7c90
mov edi, eax
mov eax, dword [0x5d6594]
cmp edi, 1
jle 0x4d87f3
test eax, eax
je 0x4d87db
mov esi, dword [eax - 4]
sub eax, 8
push eax
call fcn.00525b95
add esp, 4
mov eax, esi
test esi, esi
jne 0x4d87c6
mov dword [0x5d6594], 0
mov eax, edi
mov dword [0x5d6598], 0
jmp 0x4d8814
push dword [0x5d65a0]
push dword [0x5d659c]
push dword [0x5d6598]
push eax
call fcn.004d8830
mov edi, eax
jmp 0x4d8814
mov eax, 2
mov ecx, dword [esp + 0x494]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x488
ret 4