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

Disassembly:
sub esp, 0x270
push ebx
push ebp
mov edx, dword [esp + 0x280]
push esi
push edi
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x140]
push eax
mov eax, dword [esp + 0x288]
push ecx
xor ebp, ebp
mov ebx, 1
push edx
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ebx
call fcn.004cf2a0
mov esi, eax
add esp, 0x10
cmp esi, ebp
jne 0x4d51f3
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x154]
push ecx
mov ecx, dword [esp + 0x148]
push edx
mov edi, 3
push eax
push ecx
mov dword [esp + 0x20], edi
call fcn.004cf2a0
mov esi, eax
add esp, 0x10
cmp esi, ebp
jne 0x4d51f3
cmp dword [esp + 0x10], edi
jne 0x4d51f0
cmp byte [esp + 0x154], 0x30
jne 0x4d51f0
cmp byte [esp + 0x168], 0x30
jne 0x4d51f0
cmp byte [esp + 0x17c], 3
jne 0x4d51f0
mov edx, dword [esp + 0x180]
mov eax, dword [esp + 0x184]
mov dword [esp + 0x138], edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x170]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x170]
push edx
push eax
push ecx
mov dword [esp + 0x20], edi
call fcn.004cf2a0
mov esi, eax
add esp, 0x10
cmp esi, ebp
jne 0x4d51f3
cmp byte [esp + 0x2c], 6
jne 0x4d51f0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x118]
push edx
push eax
push ecx
call fcn.004cf580
mov esi, eax
add esp, 0xc
cmp esi, ebp
jne 0x4d51f3
cmp dword [esp + 0x10], ebx
jle 0x4d4b26
mov ecx, 5
lea esi, [esp + 0x40]
lea edi, [esp + 0x124]
rep movsd dword es:[edi], dword [esi]
jmp 0x4d4b2e
mov byte [esp + 0x124], 0
mov eax, dword [esp + 0x15c]
mov edx, dword [esp + 0x144]
cmp eax, 0x80
mov dword [esp + 0x110], edx
lea ecx, [eax + 2]
mov dword [esp + 0x114], ecx
jb 0x4d4b5c
inc ecx
mov dword [esp + 0x114], ecx
cmp eax, 0x100
jb 0x4d4b6a
inc dword [esp + 0x114]
cmp eax, 0x10000
jb 0x4d4b78
inc dword [esp + 0x114]
cmp eax, 0x1000000
jb 0x4d4b86
inc dword [esp + 0x114]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x190]
push edx
mov edx, dword [esp + 0x15c]
push ecx
push eax
push edx
mov dword [esp + 0x20], 8
call fcn.004cf2a0
mov esi, eax
add esp, 0x10
cmp esi, ebp
jne 0x4d51f3
mov eax, dword [esp + 0x10]
cmp eax, 6
mov dword [esp + 0x24], eax
jl 0x4d51f0
mov al, byte [esp + 0x190]
xor ebx, ebx
cmp al, 0xa0
mov dword [esp + 0x78], ebp
jne 0x4d4c48
mov edx, dword [esp + 0x198]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x198]
push ecx
mov ebx, 1
push edx
push eax
mov dword [esp + 0x20], ebx
call fcn.004cf2a0
mov esi, eax
add esp, 0x10
cmp esi, ebp
jne 0x4d51f3
cmp byte [esp + 0x2c], 2
jne 0x4d51f0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x78]
push ecx
push edx
push eax
call fcn.004cf520
add esp, 0xc
test eax, eax
jne 0x4d51f0
mov eax, dword [esp + 0x78]
cmp eax, ebp
je 0x4d4c48
cmp eax, 2
jne 0x4d51f0
lea ebp, [ebx + ebx*4]
shl ebp, 2
cmp byte [esp + ebp + 0x190], 2
jne 0x4d51f0
mov al, byte [esp + ebp + 0x1a4]
mov ecx, dword [esp + ebp + 0x194]
mov edx, dword [esp + ebp + 0x198]
cmp al, 0x30
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
jne 0x4d51f0
mov edx, dword [esp + ebp + 0x1ac]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [esp + ebp + 0x1ac]
push ecx
push edx
push eax
mov dword [esp + 0x20], 3
call fcn.004cf2a0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d51f3
cmp byte [esp + 0x2c], 6
jne 0x4d51f0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x84]
push ecx
push edx
push eax
call fcn.004cf580
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d51f3
cmp dword [esp + 0x10], 1
jle 0x4d4d02
mov ecx, 5
lea esi, [esp + 0x40]
lea edi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
jmp 0x4d4d0a
mov byte [esp + 0x90], 0
cmp byte [esp + ebp + 0x1b8], 0x30
jne 0x4d51f0
mov edx, dword [esp + ebp + 0x1c0]
mov eax, dword [esp + ebp + 0x1bc]
lea ecx, [esp + 0xa4]
push ecx
push edx
push eax
call fcn.004d5300
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d51f3
mov al, byte [esp + ebp + 0x1cc]
mov ecx, dword [esp + ebp + 0x1c4]
mov edx, dword [esp + ebp + 0x1c8]
cmp al, 0x30
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], edx
jne 0x4d51f0
mov edx, dword [esp + ebp + 0x1d4]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [esp + ebp + 0x1d4]
push ecx
push edx
push eax
mov dword [esp + 0x20], 2
call fcn.004cf2a0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d51f3
cmp dword [esp + 0x10], 2
jl 0x4d51f0
mov cl, byte [esp + 0x2c]
mov al, 0x17
cmp cl, al
jne 0x4d51f0
cmp byte [esp + 0x40], al
jne 0x4d51f0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xb4]
push ecx
push edx
push eax
call fcn.004cf5d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d51f3
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xb8]
push ecx
push edx
push eax
call fcn.004cf5d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d51f3
cmp byte [esp + ebp + 0x1e0], 0x30
jne 0x4d51f0
mov edx, dword [esp + ebp + 0x1e8]
mov eax, dword [esp + ebp + 0x1e4]
lea ecx, [esp + 0xbc]
push ecx
push edx
push eax
call fcn.004d5300
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d51f3
mov al, byte [esp + ebp + 0x1f4]
mov ecx, dword [esp + ebp + 0x1ec]
mov edx, dword [esp + ebp + 0x1f0]
cmp al, 0x30
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], edx
jne 0x4d51f0
mov edx, dword [esp + ebp + 0x1fc]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [esp + ebp + 0x1fc]
push ecx
push edx
push eax
mov dword [esp + 0x20], 3
call fcn.004cf2a0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d51f3
cmp dword [esp + 0x10], 2
jl 0x4d51f0
cmp byte [esp + 0x2c], 0x30
jne 0x4d51f0
cmp byte [esp + 0x40], 3
jne 0x4d51f0
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x258]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
mov dword [esp + 0x20], 2
call fcn.004cf2a0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d51f3
cmp byte [esp + 0x258], 6
jne 0x4d51f0
mov eax, dword [esp + 0x260]
mov ecx, dword [esp + 0x25c]
lea edx, [esp + 0xcc]
push edx
push eax
push ecx
call fcn.004cf580
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d51f3
cmp dword [esp + 0x10], 1
jle 0x4d4f4b
mov ecx, 5
lea esi, [esp + 0x26c]
lea edi, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
jmp 0x4d4f53
mov byte [esp + 0xd8], 0
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + ebp + 0x200]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xec], edx
mov edx, dword [esp + ebp + 0x204]
add ebx, 6
cmp ebx, eax
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], edx
mov dword [esp + 0x28], ebx
jge 0x4d51d1
lea eax, [ebx + ebx*4]
lea ecx, [esp + eax*4 + 0x194]
mov dword [esp + 0x20], ecx
mov edi, dword [esp + 0x6c]
xor eax, eax
mov al, byte [ecx - 4]
sub eax, 0xa1
je 0x4d519e
dec eax
je 0x4d5189
dec eax
jne 0x4d51f0
lea edx, [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [ecx + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
mov dword [esp + 0x20], 1
call fcn.004cf2a0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d51f3
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.004cf2c0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d51f3
mov eax, dword [esp + 0x14]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 2
push ecx
call fcn.004eede8
mov ecx, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x4d5045
lea edi, [ecx*8]
sub edi, ecx
shl edi, 2
mov dword [esp + 0x6c], edi
lea edx, [esp + 0x10]
mov ebx, eax
push edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x84], edi
call fcn.004cf2a0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d51f3
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x10], ebp
jle 0x4d5172
push 0x1c
call fcn.004eede8
mov edi, eax
add esp, 4
test edi, edi
je 0x4d50a2
mov dword [esp + 0x6c], 0x1c
test ebp, ebp
mov dword [edi], 0
jne 0x4d50b5
mov dword [esp + 0x10c], edi
jmp 0x4d50b8
mov dword [ebp], edi
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], 3
mov ebp, edi
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x20]
mov edx, dword [eax + ecx*4 + 8]
push edx
mov eax, dword [eax + ecx*4 + 4]
push eax
call fcn.004cf2a0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d51f3
mov eax, dword [esp + 0x1c]
cmp eax, 2
jl 0x4d51f0
cmp eax, 3
jne 0x4d510b
mov byte [edi + 0x10], 1
jmp 0x4d510f
mov byte [edi + 0x10], 0
cmp byte [esp + 0x2c], 6
jne 0x4d51f0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
lea ecx, [edi + 4]
push ecx
push edx
push eax
call fcn.004cf580
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d51f3
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*4]
shl eax, 2
cmp byte [esp + eax + 0x18], 4
jne 0x4d51f0
mov ecx, dword [esp + eax + 0x1c]
mov dword [edi + 0x14], ecx
mov edx, dword [esp + eax + 0x20]
mov dword [edi + 0x18], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4d508a
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x4d51b1
test ebx, ebx
je 0x4d51b1
push ebx
call fcn.004eeca7
add esp, 4
jmp 0x4d51b1
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], ecx
jmp 0x4d51b1
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0xfc], edx
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
inc eax
add ecx, 0x14
cmp eax, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
jl 0x4d4fa6
mov edi, dword [esp + 0x28c]
mov ecx, 0x32
lea esi, [esp + 0x78]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x270
ret
or esi, 0xffffffff
lea ecx, [esp + 0x78]
push ecx
call fcn.004d5240
mov ecx, dword [esp + 0x1c]
add esp, 4
test ecx, ecx
je 0x4d5227
mov eax, dword [esp + 0x14]
lea edx, [eax*8]
sub edx, eax
shl edx, 2
mov dword [esp + 0x6c], edx
je 0x4d5227
push ecx
call fcn.004eeca7
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x270
ret