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

Disassembly:
sub esp, 0x9c
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
push edi
xor ebx, ebx
push ebp
lea edi, [esp + 0x44]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.00498aa0
push 0x1006b9e0
lea edi, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00498aa0
mov eax, dword [0x10075f98]
push 0x1006b9cc
push eax
mov ecx, edi
push ecx
lea esi, [esp + 0x38]
call fcn.00497a20
add esp, 8
push eax
lea edx, [esp + 0x54]
push edx
call fcn.00497ac0
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, ebx
je 0x4d7988
call fcn.004b16a0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4d7995
call fcn.004b16a0
push 0x10060788
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00497ac0
mov edx, dword [eax]
add esp, 0xc
xor ecx, ecx
cmp word [edx], bx
mov eax, edx
je 0x4d79c2
add eax, 2
add ecx, 1
cmp word [eax], bx
jne 0x4d79b7
push ecx
mov eax, ebp
call fcn.004ba790
add esp, 4
test eax, eax
je 0x4d79e4
mov edx, dword [esp + 0x4c]
mov eax, ebp
call fcn.004ba720
test eax, eax
mov byte [esp + 0x13], bl
jne 0x4d79e9
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4d79f6
call fcn.004b16a0
cmp byte [esp + 0x13], bl
je 0x4d7afb
mov edx, dword [esp + 0x50]
lea eax, [ebp + edx*2]
push eax
lea edi, [esp + 0x30]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.00498aa0
mov esi, dword [esp + 0x2c]
push esi
lea edi, [esp + 0x44]
call fcn.00498aa0
cmp esi, ebx
je 0x4d7a37
mov eax, esi
call fcn.004b16a0
push 0x1006b9e0
lea edi, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00498aa0
mov edx, dword [0x10075f98]
lea ecx, [esp + 0x40]
push ecx
push 0x1006ba14
push edx
mov eax, edi
push eax
lea esi, [esp + 0x24]
call fcn.00497a20
add esp, 8
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.00497ac0
add esp, 0xc
push eax
lea esi, [esp + 0x34]
call fcn.00497a20
mov edx, dword [eax]
add esp, 8
push edx
lea edi, [esp + 0x44]
call fcn.00498aa0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4d7ab1
call fcn.004b16a0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x4d7aca
call fcn.004b16a0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4d7ae3
call fcn.004b16a0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4d7af0
call fcn.004b16a0
mov eax, dword [esp + 0x40]
mov dword [esp + 0xb0], eax
push 0x1006b9e0
lea edi, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00498aa0
mov ecx, dword [0x10075f98]
push ecx
mov edx, edi
push edx
lea esi, [esp + 0x1c]
call fcn.00497a20
mov eax, dword [eax]
add esp, 8
push eax
lea edi, [esp + 0x6c]
mov dword [esp + 0x68], 0x80000001
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call fcn.00498aa0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4d7b64
call fcn.004b16a0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4d7b71
call fcn.004b16a0
push 0x1006ba38
lea edi, [esp + 0x7c]
mov dword [esp + 0x78], 0x80000003
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
call fcn.00498aa0
push 0x1006ba58
lea edi, [esp + 0x8c]
mov dword [esp + 0x88], 0x80000005
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call fcn.00498aa0
push 0x1006b9a8
lea edi, [esp + 0x9c]
mov dword [esp + 0x98], 0x80000002
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
call fcn.00498aa0
lea ecx, [esp + 0x68]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ecx
jmp 0x4d7c10
mov edx, dword [esp + 0x38]
mov edi, dword [edx]
mov esi, dword [0x1005f040]
push edi
call esi
mov ebp, eax
mov eax, dword [esp + 0xb0]
push eax
call esi
cmp eax, ebp
jl 0x4d7c79
push edi
call esi
mov esi, eax
add esi, 1
mov ebp, ebx
mov eax, ebx
je 0x4d7c4d
lea ecx, [esi + esi]
push ecx
call fcn.004b1530
mov ebp, eax
add esp, 4
mov eax, esi
mov esi, dword [esp + 0xb0]
push eax
push esi
push ebp
call dword [0x1005f1c4]
mov edx, edi
mov eax, ebp
call fcn.004ba720
test eax, eax
je 0x4d7d23
cmp ebp, ebx
je 0x4d7c79
mov eax, ebp
call fcn.004b16a0
mov eax, dword [esp + 0x3c]
add dword [esp + 0x38], 0x10
add eax, 1
cmp eax, 4
mov dword [esp + 0x3c], eax
jb 0x4d7c10
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
push ecx
lea edi, [esp + 0x18]
mov dword [eax], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00498aa0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0xb8]
push esi
call fcn.00498aa0
cmp esi, ebx
je 0x4d7cd0
mov eax, esi
call fcn.004b16a0
mov edi, 3
lea esi, [esp + 0xa8]
lea esp, [esp]
mov eax, dword [esi - 0x10]
sub esi, 0x10
cmp eax, ebx
je 0x4d7cf7
call fcn.004b16a0
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
sub edi, 1
jns 0x4d7ce0
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x4d7d09
call fcn.004b16a0
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x4d7d16
call fcn.004b16a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0xc
mov eax, dword [esp + 0x38]
mov edx, dword [eax - 4]
mov ecx, dword [esp + 0xb4]
mov dword [ecx], edx
mov edx, dword [eax]
push edx
call dword [0x1005f040]
cmp word [esi + eax*2], 0x5c
lea eax, [esi + eax*2]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea edi, [esp + 0x14]
jne 0x4d7d59
add eax, 2
push eax
call fcn.00498aa0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0xb8]
push esi
call fcn.00498aa0
cmp esi, ebx
je 0x4d7d7b
mov eax, esi
call fcn.004b16a0
cmp ebp, ebx
je 0x4d7d86
mov eax, ebp
call fcn.004b16a0
mov edi, 3
lea esi, [esp + 0xa8]
mov eax, dword [esi - 0x10]
sub esi, 0x10
cmp eax, ebx
je 0x4d7da9
call fcn.004b16a0
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
sub edi, 1
jns 0x4d7d92
jmp 0x4d7cfc