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

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
push 0x200
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
call fcn.004f56f0
mov ebp, eax
add esp, 4
cmp ebp, edi
mov dword [esp + 0x24], ebp
je 0x4d218c
mov eax, dword [esp + 0x44]
push 1
push ebp
push edi
push edi
push eax
call fcn.004d8c50
add esp, 0x14
cmp eax, 1
jne 0x4d218c
cmp word [ebp + 0x1fe], 0xaa55
jne 0x4d218c
lea esi, [ebp + 0x1be]
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
add edi, ecx
inc eax
cmp eax, 0x40
jl 0x4d1f08
xor ecx, ecx
mov edx, esi
mov al, byte [edx]
cmp al, 0x80
je 0x4d1f23
test al, al
jne 0x4d1f2e
inc ecx
add edx, 0x10
cmp ecx, 4
jl 0x4d1f19
jmp 0x4d1f37
cmp ecx, 4
jl 0x4d218c
test edi, edi
je 0x4d218c
xor eax, eax
mov cl, byte [esi + 4]
cmp cl, 0xee
mov byte [esp + 0x13], cl
jne 0x4d1f57
mov dword [esp + 0x20], 1
jmp 0x4d1f65
test cl, cl
je 0x4d1f65
cmp cl, 5
je 0x4d1f73
cmp cl, 0xf
je 0x4d1f73
add esi, 0x10
inc eax
cmp eax, 4
jl 0x4d1f41
jmp 0x4d2007
mov ecx, dword [esp + 0x4c]
mov edx, dword [esi + 8]
xor edi, edi
mov dword [esp + 0x30], edx
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
cmp ecx, 1
jb 0x4d1f9c
ja 0x4d1f91
test eax, eax
jbe 0x4d1f9c
xor eax, eax
mov ecx, 1
sub eax, edx
jmp 0x4d1f9e
sub eax, edx
lea ebx, [esp + 0x14]
mov dword [esi + 0xc], eax
push ebx
lea ebx, [esp + 0x1c]
sbb ecx, edi
push ebx
add eax, edx
lea ebx, [esp + 0x24]
adc ecx, edi
mov edi, dword [esp + 0x4c]
push ebx
push ecx
push eax
push edi
call fcn.004d7fd0
mov ecx, dword [esp + 0x2c]
lea edx, [esi + 7]
lea eax, [esi + 6]
push edx
mov edx, dword [esp + 0x34]
add esi, 5
push eax
mov eax, dword [esp + 0x3c]
push esi
push ecx
push edx
push eax
call fcn.004d80a0
push 0x200
push 1
push 0
push 0
push ebp
push edi
call fcn.004d8fe0
add esp, 0x48
test eax, eax
je 0x4d218c
mov ebx, dword [esp + 0x30]
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4d218c
mov edx, ebx
xor eax, eax
or edx, eax
je 0x4d218c
mov dword [esp + 0x20], eax
cmp cl, 5
je 0x4d2031
cmp cl, 0xf
jne 0x4d2178
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add ecx, ebx
mov eax, 0
push 1
push ebp
adc edx, eax
mov eax, dword [esp + 0x4c]
push edx
push ecx
push eax
call fcn.004d8c50
add esp, 0x14
cmp eax, 1
jne 0x4d218c
add ebp, 0x1be
xor ecx, ecx
mov al, byte [ebp + 4]
cmp al, 0xee
mov byte [esp + 0x13], al
je 0x4d2081
test al, al
je 0x4d2081
cmp al, 5
je 0x4d207c
cmp al, 0xf
jne 0x4d2081
cmp ecx, 1
je 0x4d208f
add ebp, 0x10
inc ecx
cmp ecx, 4
jl 0x4d2065
jmp 0x4d2170
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
xor edi, edi
add esi, ecx
mov ecx, dword [esp + 0x4c]
adc edi, eax
add esi, ebx
mov ebx, dword [ecx + 0x18]
mov eax, 0
mov edx, ecx
lea ecx, [esp + 0x18]
adc edi, eax
sub ebx, esi
mov eax, dword [edx + 0x1c]
lea edx, [esp + 0x1c]
sbb eax, edi
mov dword [ebp + 0xc], ebx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push edi
push esi
push eax
call fcn.004d7fd0
lea ecx, [ebp + 3]
lea edx, [ebp + 2]
push ecx
mov ecx, dword [esp + 0x30]
lea eax, [ebp + 1]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
call fcn.004d80a0
lea ecx, [esp + 0x44]
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x80]
add ebx, esi
adc eax, edi
sub ebx, 1
sbb eax, 0
push eax
push ebx
push ecx
call fcn.004d7fd0
mov ecx, dword [esp + 0x5c]
add esp, 0x48
lea edx, [ebp + 7]
lea eax, [ebp + 6]
push edx
mov edx, dword [esp + 0x1c]
add ebp, 5
push eax
mov eax, dword [esp + 0x24]
push ebp
push ecx
push edx
push eax
call fcn.004d80a0
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add esp, 0x18
sub esi, ebp
mov eax, 0
sbb edi, ebx
sub esi, edx
sbb edi, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov ebx, edx
mov cl, byte [esp + 0x13]
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 0x12c
mov dword [esp + 0x20], eax
jl 0x4d2023
push ebp
call fcn.004f5720
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret