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

Disassembly:
sub esp, 0x20
mov ecx, dword [esp + 0x28]
mov eax, 1
push ebx
push ebp
push esi
add ecx, 6
shl eax, cl
xor ecx, ecx
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 0x78]
mov esi, dword [edi + 0x7c]
add eax, 0xc
lea esi, [eax + esi*4]
mov eax, dword [esp + 0x3c]
mov dword [eax], 0
test dword [edi + 0x80], 0xfffffffc
jbe 0x4d06aa
mov eax, 2
mov dword [esp + 0x34], eax
xor edx, edx
mov dword [esp + 0x10], edx
cmp dword [edi + 0x7c], edx
jbe 0x4d0684
mov ebp, dword [esi]
test ebp, ebp
je 0x4d066b
mov ecx, dword [edi + 0x8c]
imul ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x74]
add ecx, edx
lea eax, [eax + ecx*4]
mov dword [esp + 0x20], eax
test ebp, 0x200010
jne 0x4d024b
and ebp, 0x1ef
je 0x4d024b
mov eax, dword [eax]
mov ecx, dword [edi + 0x6c]
cdq
xor eax, edx
sub eax, edx
and eax, dword [esp + 0x14]
neg eax
sbb ebx, ebx
movzx eax, byte [ecx + ebp]
add eax, 7
neg ebx
cmp byte [esp + 0x40], 1
push ebx
push edi
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4d013b
call fcn.004d2140
jmp 0x4d0140
call fcn.004d23e0
add esp, 8
test ebx, ebx
je 0x4d0241
mov ebx, dword [esi - 4]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
and eax, 0x80000
shr ebx, 2
and ebx, 0x20000
or ebx, eax
mov eax, ecx
and eax, 0x400000
shr ebx, 1
or ebx, eax
mov eax, ecx
and eax, 0x40000
shr ebx, 2
or ebx, eax
and ecx, 0xaa
mov eax, dword [esp + 0x20]
shr ebx, 0xe
or ebx, ecx
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
cdq
movzx ebp, byte [ebx + 0x550150]
sets cl
xor eax, edx
mov dword [esp + 0x1c], ecx
sub eax, edx
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4d01bf
mov ecx, edx
shr eax, cl
mov ecx, dword [esp + 0x1c]
and eax, 0x7f
movzx eax, word [eax*2 + 0x550350]
jmp 0x4d01ca
and eax, 0x7f
movzx eax, word [eax*2 + 0x550450]
mov edx, dword [esp + 0x3c]
cwde
add dword [edx], eax
lea eax, [edi + 0x1c]
cmp byte [esp + 0x40], 1
lea eax, [eax + ebp*4]
mov dword [edi + 0x68], eax
jne 0x4d01ea
push ecx
push edi
call fcn.004d2140
jmp 0x4d01fa
movzx eax, byte [ebx + 0x550250]
xor eax, ecx
push eax
push edi
call fcn.004d23e0
mov edx, dword [esp + 0x24]
add esp, 8
mov ecx, dword [edi + 0x7c]
mov eax, edx
or dword [esi - 4], 0x20
shl eax, 0x13
or eax, 0x10
or dword [esi], eax
or dword [esi + 4], 8
test byte [esp + 0x44], 8
jne 0x4d0241
lea eax, [ecx*4 + 8]
shl edx, 0x1f
mov ecx, esi
or edx, 0x10000
sub ecx, eax
or dword [ecx], edx
or dword [ecx - 4], 0x20000
or dword [ecx + 4], 0x8000
or dword [esi], 0x200000
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov eax, dword [edi + 0x74]
dec ecx
imul ecx, dword [edi + 0x8c]
add ecx, edx
lea ebp, [eax + ecx*4]
mov ecx, dword [esi]
test ecx, 0x1000080
jne 0x4d03a1
test ecx, 0xf78
je 0x4d03a1
mov eax, dword [ebp]
cdq
xor eax, edx
sub eax, edx
and eax, dword [esp + 0x14]
neg eax
sbb ebx, ebx
mov eax, dword [edi + 0x6c]
shr ecx, 3
neg ebx
and ecx, 0x1ef
push ebx
push edi
movzx eax, byte [ecx + eax]
add eax, 7
cmp byte [esp + 0x48], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4d02b4
call fcn.004d2140
jmp 0x4d02b9
call fcn.004d23e0
add esp, 8
test ebx, ebx
je 0x4d0397
mov ebx, dword [esi - 4]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
and eax, 0x400000
shr ebx, 2
and ebx, 0x100000
or ebx, eax
mov eax, ecx
and eax, 0x2000000
shr ebx, 1
or ebx, eax
mov eax, ecx
and eax, 0x80000
shr ebx, 4
or ebx, eax
and ecx, 0x550
shr ebx, 0xc
or ebx, ecx
xor ecx, ecx
shr ebx, 3
movzx eax, byte [ebx + 0x550150]
mov dword [esp + 0x20], eax
mov eax, dword [ebp]
test eax, eax
cdq
sets cl
xor eax, edx
sub eax, edx
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4d033c
mov ecx, edx
shr eax, cl
mov ecx, dword [esp + 0x1c]
and eax, 0x7f
movzx eax, word [eax*2 + 0x550350]
jmp 0x4d0347
and eax, 0x7f
movzx eax, word [eax*2 + 0x550450]
mov edx, dword [esp + 0x3c]
cwde
add dword [edx], eax
mov eax, dword [esp + 0x20]
add eax, 7
cmp byte [esp + 0x40], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4d036b
push ecx
push edi
call fcn.004d2140
jmp 0x4d037b
movzx eax, byte [ebx + 0x550250]
xor eax, ecx
push eax
push edi
call fcn.004d23e0
mov eax, dword [esp + 0x24]
add esp, 8
or dword [esi - 4], 0x100
shl eax, 0x16
or eax, 0x80
or dword [esi], eax
or dword [esi + 4], 0x40
or dword [esi], 0x1000000
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 0x8c]
imul ecx, dword [esp + 0x34]
mov eax, dword [edi + 0x74]
add ecx, edx
lea ebp, [eax + ecx*4]
mov ecx, dword [esi]
test ecx, 0x8000400
jne 0x4d04f9
test ecx, 0x7bc0
je 0x4d04f9
mov eax, dword [ebp]
cdq
xor eax, edx
sub eax, edx
and eax, dword [esp + 0x14]
neg eax
sbb ebx, ebx
mov eax, dword [edi + 0x6c]
shr ecx, 6
neg ebx
and ecx, 0x1ef
push ebx
push edi
movzx eax, byte [ecx + eax]
add eax, 7
cmp byte [esp + 0x48], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4d0409
call fcn.004d2140
jmp 0x4d040e
call fcn.004d23e0
add esp, 8
test ebx, ebx
je 0x4d04ef
mov ebx, dword [esi - 4]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
and eax, 0x2000000
shr ebx, 2
and ebx, 0x800000
or ebx, eax
mov eax, ecx
and eax, 0x10000000
shr ebx, 1
or ebx, eax
mov eax, ecx
and eax, 0x400000
shr ebx, 4
or ebx, eax
and ecx, 0x2a80
shr ebx, 0xc
or ebx, ecx
xor ecx, ecx
shr ebx, 6
movzx eax, byte [ebx + 0x550150]
mov dword [esp + 0x20], eax
mov eax, dword [ebp]
test eax, eax
cdq
sets cl
xor eax, edx
sub eax, edx
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4d0491
mov ecx, edx
shr eax, cl
mov ecx, dword [esp + 0x1c]
and eax, 0x7f
movzx eax, word [eax*2 + 0x550350]
jmp 0x4d049c
and eax, 0x7f
movzx eax, word [eax*2 + 0x550450]
mov edx, dword [esp + 0x3c]
cwde
add dword [edx], eax
mov eax, dword [esp + 0x20]
add eax, 7
cmp byte [esp + 0x40], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4d04c0
push ecx
push edi
call fcn.004d2140
jmp 0x4d04d0
movzx eax, byte [ebx + 0x550250]
xor eax, ecx
push eax
push edi
call fcn.004d23e0
mov eax, dword [esp + 0x24]
add esp, 8
or dword [esi - 4], 0x800
shl eax, 0x19
or eax, 0x400
or dword [esi], eax
or dword [esi + 4], 0x200
or dword [esi], 0x8000000
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov eax, dword [edi + 0x74]
inc ecx
imul ecx, dword [edi + 0x8c]
add ecx, edx
lea ebp, [eax + ecx*4]
mov ecx, dword [esi]
test ecx, 0x40002000
jne 0x4d066b
test ecx, 0x3de00
je 0x4d066b
mov eax, dword [ebp]
cdq
xor eax, edx
sub eax, edx
and eax, dword [esp + 0x14]
neg eax
sbb ebx, ebx
mov eax, dword [edi + 0x6c]
shr ecx, 9
neg ebx
and ecx, 0x1ef
push ebx
push edi
movzx eax, byte [ecx + eax]
add eax, 7
cmp byte [esp + 0x48], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4d0562
call fcn.004d2140
jmp 0x4d0567
call fcn.004d23e0
add esp, 8
test ebx, ebx
je 0x4d0661
mov ebx, dword [esi - 4]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
and eax, 0x10000000
shr ebx, 2
and ebx, 0x4000000
or ebx, eax
mov eax, ecx
and eax, 0x81ffffff
shr ebx, 1
or ebx, eax
mov eax, ecx
and eax, 0x2000000
shr ebx, 4
or ebx, eax
and ecx, 0x15400
shr ebx, 0xc
or ebx, ecx
xor ecx, ecx
shr ebx, 9
movzx eax, byte [ebx + 0x550150]
mov dword [esp + 0x20], eax
mov eax, dword [ebp]
test eax, eax
cdq
sets cl
xor eax, edx
sub eax, edx
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4d05ea
mov ecx, edx
shr eax, cl
mov ecx, dword [esp + 0x1c]
and eax, 0x7f
movzx eax, word [eax*2 + 0x550350]
jmp 0x4d05f5
and eax, 0x7f
movzx eax, word [eax*2 + 0x550450]
mov edx, dword [esp + 0x3c]
cwde
add dword [edx], eax
mov eax, dword [esp + 0x20]
add eax, 7
cmp byte [esp + 0x40], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4d0619
push ecx
push edi
call fcn.004d2140
jmp 0x4d0629
movzx eax, byte [ebx + 0x550250]
xor eax, ecx
push eax
push edi
call fcn.004d23e0
mov ecx, dword [edi + 0x7c]
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, edx
or dword [esi - 4], 0x4000
shl eax, 0x1c
or eax, 0x2000
shl edx, 0x12
or dword [esi], eax
or edx, 2
or dword [esi + 4], 0x1000
or dword [esi + ecx*4 + 8], edx
or dword [esi + ecx*4 + 4], 4
or dword [esi + ecx*4 + 0xc], 1
or dword [esi], 0x40000000
mov edx, dword [esp + 0x10]
inc edx
add esi, 4
mov dword [esp + 0x10], edx
cmp edx, dword [edi + 0x7c]
jb 0x4d00d1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
add eax, 4
add ecx, 4
mov dword [esp + 0x34], eax
add esi, 8
mov eax, dword [edi + 0x80]
and eax, 0xfffffffc
mov dword [esp + 0x18], ecx
cmp ecx, eax
mov eax, dword [esp + 0x34]
jb 0x4d00c2
mov eax, dword [edi + 0x80]
cmp ecx, eax
jae 0x4d0906
xor ebx, ebx
mov dword [esp + 0x10], ebx
cmp dword [edi + 0x7c], ebx
jbe 0x4d0906
cmp dword [esi], 0
je 0x4d08f5
mov edx, ecx
mov dword [esp + 0x20], edx
cmp ecx, eax
jae 0x4d08f5
mov dword [esp + 0x34], 0
xor ebp, ebp
cmp edx, ecx
jne 0x4d06fb
test byte [esp + 0x44], 8
mov dword [esp + 0x1c], 1
jne 0x4d0703
mov dword [esp + 0x1c], 0
mov ecx, dword [edi + 0x8c]
mov eax, dword [edi + 0x74]
imul ecx, edx
mov edx, dword [esi]
mov dword [esp + 0x24], edx
add ecx, ebx
lea ebx, [eax + ecx*4]
mov eax, 0x200010
mov ecx, ebp
mov dword [esp + 0x28], ebx
shl eax, cl
test edx, eax
jne 0x4d08cf
mov eax, 0x1ef
shl eax, cl
test edx, eax
je 0x4d08cf
mov eax, dword [ebx]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x24]
and eax, dword [esp + 0x14]
neg eax
sbb ebx, ebx
mov eax, dword [edi + 0x6c]
shr edx, cl
neg ebx
and edx, 0x1ef
push ebx
push edi
movzx eax, byte [edx + eax]
add eax, 7
cmp byte [esp + 0x48], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4d077b
call fcn.004d2140
jmp 0x4d0780
call fcn.004d23e0
add esp, 8
test ebx, ebx
je 0x4d08c4
mov edx, dword [esi - 4]
lea ecx, [ebp + 0x13]
mov eax, dword [esi + 4]
mov ebx, dword [esi]
shr edx, cl
lea ecx, [ebp + 0x11]
shr eax, cl
and edx, 1
and eax, 4
mov ecx, ebp
or edx, eax
mov eax, ebx
shr eax, cl
and eax, 0xaa
or edx, eax
cmp dword [esp + 0x34], 0
mov eax, ebx
jne 0x4d07c0
shr eax, 0xe
jmp 0x4d07c5
lea ecx, [ebp + 0xc]
shr eax, cl
and eax, 0x10
lea ecx, [ebp + 0x10]
or edx, eax
shr ebx, cl
mov ecx, dword [esp + 0x38]
and ebx, 0x40
or ebx, edx
mov dword [esp + 0x2c], ebx
movzx eax, byte [ebx + 0x550150]
xor ebx, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
test eax, eax
cdq
sets bl
xor eax, edx
sub eax, edx
test ecx, ecx
je 0x4d080c
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x550350]
jmp 0x4d0817
and eax, 0x7f
movzx eax, word [eax*2 + 0x550450]
mov ecx, dword [esp + 0x3c]
cwde
add dword [ecx], eax
mov eax, dword [esp + 0x24]
add eax, 7
cmp byte [esp + 0x40], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x4d083b
push ebx
push edi
call fcn.004d2140
jmp 0x4d084f
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + 0x550250]
xor eax, ebx
push eax
push edi
call fcn.004d23e0
mov edx, dword [edi + 0x7c]
mov ecx, ebp
mov eax, 0x20
add esp, 8
shl eax, cl
or dword [esi - 4], eax
mov eax, ebx
shl eax, 0x13
or eax, 0x10
shl eax, cl
or dword [esi], eax
mov eax, 8
shl eax, cl
or dword [esi + 4], eax
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4d08ab
cmp dword [esp + 0x1c], eax
jne 0x4d08c4
lea eax, [edx*4 + 8]
shl ebx, 0x1f
mov ecx, esi
or ebx, 0x10000
sub ecx, eax
or dword [ecx], ebx
or dword [ecx - 4], 0x20000
or dword [ecx + 4], 0x8000
jmp 0x4d08c4
cmp eax, 3
jne 0x4d08c4
shl ebx, 0x12
or ebx, 2
or dword [esi + edx*4 + 8], ebx
or dword [esi + edx*4 + 4], 4
or dword [esi + edx*4 + 0xc], 1
mov eax, 0x200000
mov ecx, ebp
shl eax, cl
or dword [esi], eax
mov edx, dword [esp + 0x20]
add ebp, 3
inc dword [esp + 0x34]
inc edx
mov eax, dword [edi + 0x80]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], edx
cmp edx, eax
jb 0x4d06e8
inc ebx
add esi, 4
mov dword [esp + 0x10], ebx
cmp ebx, dword [edi + 0x7c]
jb 0x4d06c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret