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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x974
mov eax, dword [0x5ff004]
xor eax, esp
mov dword [esp + 0x970], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], esi
push edi
test ebx, ebx
je 0x4d8d4e
mov eax, dword [ebx + 4]
push ebx
call eax
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x30]
push 0x538
push 0
push 0
push eax
mov eax, dword [ebx]
push ebx
call eax
mov ecx, dword [esp + 0x48]
lea edi, [esi + 0x8c]
mov ebx, dword [esp + 0x4f]
add esp, 0x14
mov eax, dword [esp + 0x30]
mov dword [esi + 0x7c], ecx
mov edx, dword [esp + 0x3f]
mov dword [esi + 0x78], eax
movzx eax, byte [esp + 0x3a]
movzx ecx, bl
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x39]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x38]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x3e]
mov dword [esi + 0x80], ecx
movzx ecx, dl
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x3d]
shl ecx, 8
or ecx, eax
movzx eax, bh
shl ecx, 8
mov ebx, 0x100
or ecx, eax
movzx eax, byte [esp + 0x42]
mov dword [esi + 0x84], ecx
movzx ecx, byte [esp + 0x43]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x41]
shl ecx, 8
or ecx, eax
movzx eax, dh
shl ecx, 8
lea edx, [esp + 0x46]
or ecx, eax
mov dword [esi + 0x88], ecx
lea esp, [esp]
movzx ecx, byte [edx + 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
lea edi, [edi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 6]
shl ecx, 8
or ecx, eax
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x4d8c40
lea ecx, [esp + 0x448]
call fcn.004d81d0
lea ecx, [esp + 0x450]
mov dword [esi + 0x490], eax
mov dword [esi + 0x494], edx
call fcn.004d81d0
lea ecx, [esp + 0x458]
mov dword [esi + 0x498], eax
mov dword [esi + 0x49c], edx
call fcn.004d81d0
mov dword [esi + 0x4a0], eax
mov al, byte [esp + 0x460]
mov byte [esi + 0x4a8], al
movzx eax, byte [esp + 0x461]
push eax
lea eax, [esp + 0x466]
mov dword [esi + 0x4a4], edx
push eax
lea eax, [esi + 0x4a9]
push eax
call fcn.00504df0
movzx eax, byte [esp + 0x4ed]
add esp, 0xc
push eax
lea eax, [esp + 0x4e6]
push eax
lea eax, [esi + 0x5a9]
push eax
call fcn.00504df0
mov eax, dword [esi + 0x490]
add esp, 0xc
mov ecx, dword [esi + 0x494]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x74]
mov dword [esi + 0x3c], ecx
test eax, eax
je 0x4d8d3a
cmp dword [eax + 0x20], 2
jne 0x4d8d31
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], 0x20
mov dword [eax + 0x30], ebx
push eax
call fcn.005092c3
add esp, 4
push 0x12c88
call fcn.0050cda6
add esp, 4
test eax, eax
jne 0x4d8d65
mov dword [esi + 0x74], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x970]
xor ecx, esp
call fcn.00502eb4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
mov edx, 0x200
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], 0
mov dword [eax + 8], 0x538
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], ecx
lea ecx, [eax + 0x3c]
mov dword [eax + 0x14], 0
jmp 0x4d8da0
mov dword [ecx], 0
lea ecx, [ecx + 0x14]
sub edx, 1
jne 0x4d8da0
mov dword [eax + 0x12878], 0x465548
lea ecx, [esp + 0x568]
mov dword [eax + 0x1287c], 1
mov dword [eax + 0x12c80], edx
mov dword [eax + 0x12c84], edx
mov dword [eax + 0x30], edx
mov dword [eax + 0x12838], edx
mov dword [eax + 0x1283c], edx
mov dword [eax + 0x12840], edx
mov dword [eax + 0x12844], edx
mov dword [eax + 0x12848], edx
mov dword [eax + 0x1284c], edx
mov dword [eax + 0x12850], edx
mov dword [eax + 0x12854], edx
mov dword [eax + 0x20], edx
mov dword [esi + 0x74], eax
mov dword [eax + 0x12838], edx
mov dword [eax + 0x1283c], edx
mov dword [eax + 0x12840], edx
mov dword [eax + 0x12844], edx
mov dword [eax + 0x12848], edx
mov dword [eax + 0x1284c], edx
mov dword [eax + 0x12850], edx
mov dword [eax + 0x12854], edx
mov esi, dword [esi + 0x74]
push 0x410
push dword [esi + 0xc]
mov eax, dword [esi]
push dword [esi + 8]
push ecx
push eax
mov eax, dword [eax]
call eax
mov ax, word [esp + 0x57d]
lea edi, [esi + 0x12880]
movzx ecx, byte [esp + 0x583]
lea edx, [esp + 0x586]
add esp, 0x14
mov ebx, 0x100
add dword [esi + 8], 0x410
adc dword [esi + 0xc], 0
mov word [esi + 0x12878], ax
mov al, byte [esp + 0x56b]
shl ecx, 8
mov byte [esi + 0x1287a], al
movzx eax, byte [esp + 0x56e]
or ecx, eax
movzx eax, byte [esp + 0x56d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x56c]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x1287c], ecx
movzx ecx, byte [edx + 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
lea edi, [edi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 6]
shl ecx, 8
or ecx, eax
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x4d8ec5
lea ecx, [esp + 0x970]
call fcn.004d81d0
mov ecx, esi
mov dword [esi + 0x12c80], eax
mov dword [esi + 0x12c84], edx
call fcn.004d83e0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], 0x20
mov dword [esi + 0x30], ebx
mov dword [esi + 0x20], 1
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.004d8f80
fld qword [0x5f8bc8]
sub esp, 8
mov dword [esi + 0x18], ebx
fstp qword [esp]
call fcn.005101e7
add esp, 8
call fcn.0051f100
mov ecx, dword [esp + 0x97c]
mov dword [esi + 0x14], eax
pop edi
mov dword [esi + 0x1c], eax
lea eax, [ebx + 1]
pop esi
pop ebx
xor ecx, esp
call fcn.00502eb4
mov esp, ebp
pop ebp
ret