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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x318
mov eax, dword [0x5a05c4]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x30]
xor eax, ebp
mov dword [esp + 0x310], eax
mov eax, dword [edi + 0x14]
mov esi, dword [edi + 0x28]
add esi, dword [eax + ebx*4]
mov dword [ecx], esi
mov edx, dword [eax + ebx*4 + 4]
sub edx, dword [eax + ebx*4]
lea eax, [esp + 0x58]
mov dword [ecx + 4], edx
push ecx
push eax
call fcn.004a6c91
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4d4975
cmp dword [esp + 0x34], 0
mov ebx, 0xb
jne 0x4d4975
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp + 0xc]
movzx eax, byte [eax + ecx]
cmp dword [esp + 0x64], eax
jne 0x4d4975
push ecx
push edi
call fcn.004a7061
add esp, 8
xor eax, dword [ebp + 0x20]
or eax, edx
jne 0x4d4975
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
mov ecx, dword [ecx + ebx*4]
mov edx, dword [edx + ebx*4]
shl ecx, 3
shl edx, 3
add ecx, dword [edi + 8]
add edx, dword [edi + 0x24]
mov dword [esp + 0x304], eax
mov dword [esp + 0x300], eax
mov dword [esp + 0x308], eax
mov eax, dword [esp + 0x58]
lea edi, [eax - 1]
mov dword [esp + 0x14], ecx
cmp edi, 3
ja 0x4d4954
cmp byte [esp + 0x98], 1
jne 0x4d4954
mov ecx, dword [esp + 0x94]
test ecx, ecx
je 0x4d4211
cmp ecx, 0x30101
je 0x4d4211
cmp ecx, 0x21
jne 0x4d4954
cmp eax, 4
je 0x4d4885
cmp eax, 1
jne 0x4d4954
cmp dword [esp + 0x60], 1
jne 0x4d4954
cmp dword [esp + 0x68], 0
jne 0x4d4954
cmp dword [esp + 0x5c], 0
jne 0x4d4954
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
add edx, ebx
xor ebx, ebx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x14]
inc ebx
mov dword [esp + 0x10], ebx
xor ebx, ebx
cmp ecx, 0x30100
mov dword [esp + 0x18], ebx
jg 0x4d428b
test ecx, ecx
je 0x4d42a3
cmp ecx, 0x21
je 0x4d42a3
jmp 0x4d4954
cmp ecx, 0x303011b
je 0x4d4324
cmp ecx, 0x30101
jne 0x4d4954
xor edi, edi
cmp eax, 4
jne 0x4d4311
mov eax, dword [esp + 0x2c]
mov edi, dword [ebx*4 + 0x57007c]
cmp ebx, 1
mov edx, dword [eax + ebx*8]
mov eax, dword [eax + ebx*8 + 4]
mov dword [esp + 4], edx
ja 0x4d44cd
mov ebx, 2
test eax, eax
jne 0x4d4959
push edx
mov eax, dword [ebp + 0x24]
push eax
call dword [eax]
mov ecx, dword [esp + 0xc]
add esp, 8
mov edx, eax
test ecx, ecx
je 0x4d42f2
test edx, edx
je 0x4d4959
xor eax, eax
mov dword [esp + 8], edx
inc eax
sub eax, dword [esp + 0x18]
mov dword [esp + eax*4 + 0x48], edx
mov edx, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x300], ecx
jmp 0x4d4501
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
jmp 0x4d4501
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 8]
mov edi, dword [edx + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x14]
sub edi, ecx
mov dword [esp + 8], ecx
sbb eax, dword [esp + 0xc]
cmp ebx, 3
jne 0x4d4954
mov ebx, 2
test eax, eax
mov dword [esp + 0x308], edi
mov dword [esp + 0x24], eax
jne 0x4d4959
push edi
mov eax, dword [ebp + 0x24]
push eax
call dword [eax]
add esp, 8
test edi, edi
mov dword [esp], eax
mov dword [esp + 0x50], eax
mov dword [esp + 4], edi
je 0x4d4382
cmp dword [esp], 0
je 0x4d4959
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
add eax, dword [ebp + 0x14]
adc ecx, dword [ebp + 0x18]
push ecx
push eax
mov edi, dword [ebp + 0x10]
push edi
call fcn.004a6810
add esp, 0xc
test eax, eax
jne 0x4d49ce
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x24]
push dword [esp]
push edi
call fcn.004d49f5
add esp, 8
test eax, eax
jne 0x4d49ce
mov eax, dword [esp + 0x300]
test al, 3
jne 0x4d49d2
mov ecx, dword [esp + 0x304]
test cl, 3
jne 0x4d49d2
mov edi, dword [esp + 0x20]
lea edx, [eax + edi]
add edx, ecx
cmp edx, dword [ebp + 0x20]
jne 0x4d49d2
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc0], edx
add edx, edi
lea edi, [esp + 0xc0]
mov dword [esp + 0xd0], edx
mov edx, dword [esp + 0x48]
add eax, edx
mov dword [esp + 0xc4], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xd4], eax
add ecx, edx
mov dword [esp + 0xc8], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0xd8], ecx
mov ecx, dword [esp]
mov dword [esp + 0xcc], ecx
add ecx, dword [esp + 4]
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], ecx
push edi
call fcn.004e7628
add esp, 4
push edi
call fcn.004e765a
add esp, 4
test eax, eax
jne 0x4d49de
mov eax, 0xfffffff0
mov ecx, dword [esp + eax + 0xd0]
cmp ecx, dword [esp + eax + 0xe0]
jne 0x4d49e2
add eax, 4
jne 0x4d447f
cmp dword [esp + 0xf8], 0
jne 0x4d49e2
mov eax, dword [esp + 0xe0]
cmp eax, dword [esp + 0xe4]
jne 0x4d49e2
cmp dword [esp + 0xe8], 0
je 0x4d4861
jmp 0x4d49d2
cmp ebx, 2
mov dword [esp], edi
jne 0x4d4954
mov edi, dword [ebp + 0x20]
mov ecx, 0
sub edi, edx
sbb ecx, eax
jb 0x4d49eb
add edi, dword [ebp + 0x1c]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x1c], edi
mov edi, dword [esp]
mov ebx, edi
mov eax, dword [edx + edi*8]
mov ecx, dword [edx + edi*8 + 4]
mov edi, dword [edx + edi*8 + 0xc]
mov edx, dword [edx + ebx*8 + 8]
sub edx, eax
sbb edi, ecx
add eax, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp], edi
adc ecx, dword [ebp + 0x18]
push ecx
push eax
push dword [ebp + 0x10]
call fcn.004a6810
add esp, 0xc
test eax, eax
jne 0x4d49ce
mov eax, dword [esp + 0x18]
lea ecx, [eax + eax*2]
lea eax, [esp + ecx*4 + 0x90]
mov edx, dword [eax + 4]
cmp edx, 0x30101
je 0x4d4593
cmp edx, 0x21
je 0x4d46ed
test edx, edx
jne 0x4d4954
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp]
xor eax, ecx
or eax, edx
jne 0x4d49d2
push dword [esp + 8]
push dword [ebp + 0x10]
call fcn.004d49f5
add esp, 8
test eax, eax
je 0x4d4861
jmp 0x4d49ce
mov eax, dword [eax]
movzx ecx, byte [esp + ecx*4 + 0x99]
xor edx, edx
mov dword [esp + 0xd4], edx
mov dword [esp + 0xd0], edx
add eax, esi
push dword [ebp + 0x24]
push ecx
push eax
lea edi, [esp + 0xcc]
push edi
call fcn.004e9b70
add esp, 0x10
test eax, eax
jne 0x4d49ce
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xe8], ecx
push edi
call fcn.004e7957
add esp, 4
mov edi, dword [esp + 0xc]
mov eax, 0x40000
mov dword [esp + 0x44], 0
cmp edi, eax
mov eax, dword [esp]
sbb eax, 0
mov eax, 0x40000
cmovb eax, edi
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebp + 0x10]
push eax
call dword [eax]
add esp, 0xc
test eax, eax
jne 0x4d4844
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 8], eax
lea eax, [esp + 0x38]
push eax
push 1
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x50]
push dword [esp + 0x14]
lea eax, [esp + 0xd4]
push eax
call fcn.004e7979
add esp, 0x18
mov ecx, dword [esp + 0x3c]
mov ebx, eax
mov eax, 2
sub dword [esp + 0x40], ecx
sub edi, ecx
sbb dword [esp], 0
test ebx, ebx
mov dword [esp + 0xc], edi
jne 0x4d46e0
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 8]
mov edx, dword [esp + 0xe4]
cmp ebx, 1
jne 0x4d46a7
mov ecx, dword [esp + 0xc]
xor edx, dword [esp + 4]
xor ebx, ebx
or ecx, dword [esp]
or ecx, edx
setne bl
jmp 0x4d46e0
cmp ebx, 4
jne 0x4d46bd
mov ebx, dword [esp + 0xc]
or ebx, dword [esp]
jne 0x4d46bd
xor ebx, ebx
cmp edx, dword [esp + 4]
je 0x4d46e0
test ecx, ecx
jne 0x4d46ca
cmp edi, edx
mov ebx, 1
je 0x4d46e0
push ecx
mov eax, dword [ebp + 0x10]
push eax
call dword [eax + 4]
add esp, 8
mov ebx, eax
xor eax, eax
test ebx, ebx
setne al
add eax, eax
test eax, eax
je 0x4d45eb
jmp 0x4d4846
mov cl, byte [esp + ecx*4 + 0x99]
mov eax, dword [eax]
xor edx, edx
mov dword [esp + 0xd4], edx
mov dword [esp + 0xd0], edx
cmp cl, 1
jne 0x4d49e2
movzx eax, byte [esi + eax]
push dword [ebp + 0x24]
push eax
lea ebx, [esp + 0xc8]
push ebx
call fcn.004e9c3c
add esp, 0xc
test eax, eax
jne 0x4d49de
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xe8], ecx
push ebx
call fcn.004e9cb7
add esp, 4
mov edx, dword [ebp + 0x10]
mov edi, dword [esp + 0xc]
mov eax, 0x40000
mov dword [esp + 0x44], 0
cmp edi, eax
mov eax, dword [esp]
sbb eax, 0
mov eax, 0x40000
cmovb eax, edi
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
push edx
call dword [edx]
add esp, 0xc
test eax, eax
jne 0x4d4844
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 8], eax
lea eax, [esp + 0x38]
push eax
push 1
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x50]
push dword [esp + 0x14]
lea eax, [esp + 0xd4]
push eax
call fcn.004e9cdf
add esp, 0x18
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp]
mov ebx, eax
mov eax, 2
sub dword [esp + 0x40], ecx
sub edi, ecx
sbb edx, 0
test ebx, ebx
mov dword [esp + 0xc], edi
mov dword [esp], edx
jne 0x4d4807
mov ebx, dword [esp + 8]
cmp dword [esp + 0x38], 1
jne 0x4d4814
mov ecx, dword [esp + 0xe4]
or edi, dword [esp]
xor ebx, ebx
xor ecx, dword [esp + 4]
or edi, ecx
setne bl
mov edx, dword [ebp + 0x10]
test eax, eax
je 0x4d4751
jmp 0x4d4846
mov edx, dword [ebp + 0x10]
test ecx, ecx
jne 0x4d4829
cmp ebx, dword [esp + 0xe4]
mov ebx, 1
je 0x4d480a
push ecx
push edx
mov eax, dword [ebp + 0x10]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add esp, 8
mov ebx, eax
xor eax, eax
test ebx, ebx
setne al
add eax, eax
jmp 0x4d480a
mov ebx, eax
push dword [ebp + 0x24]
lea eax, [esp + 0xc4]
push eax
call fcn.004e9ae2
add esp, 8
test ebx, ebx
jne 0x4d4959
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x58]
inc ebx
cmp ebx, eax
jae 0x4d49d7
lea ecx, [ebx + ebx*2]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + ecx*4 + 0x94]
jmp 0x4d4271
cmp byte [esp + 0xa4], 1
jne 0x4d4954
mov edi, edx
mov edx, dword [esp + 0xa0]
test edx, edx
je 0x4d48b1
cmp edx, 0x30101
je 0x4d48b1
cmp edx, 0x21
jne 0x4d4954
cmp byte [esp + 0xb0], 1
jne 0x4d4954
mov edx, dword [esp + 0xac]
test edx, edx
je 0x4d48d7
cmp edx, 0x30101
je 0x4d48d7
cmp edx, 0x21
jne 0x4d4954
cmp dword [esp + 0xb8], 0x303011b
jne 0x4d4954
cmp byte [esp + 0xbc], 4
jne 0x4d4954
cmp dword [esp + 0x60], 4
jne 0x4d4954
cmp dword [esp + 0x68], 2
jne 0x4d4954
cmp dword [esp + 0x6c], 6
jne 0x4d4954
cmp dword [esp + 0x70], 1
jne 0x4d4954
cmp dword [esp + 0x74], 0
jne 0x4d4954
cmp dword [esp + 0x5c], 3
jne 0x4d4954
cmp dword [esp + 0x78], 5
jne 0x4d4954
cmp dword [esp + 0x7c], 0
jne 0x4d4954
cmp dword [esp + 0x80], 4
jne 0x4d4954
cmp dword [esp + 0x84], 1
jne 0x4d4954
cmp dword [esp + 0x88], 3
jne 0x4d4954
cmp dword [esp + 0x8c], 2
mov edx, edi
je 0x4d4244
mov ebx, 4
mov edi, dword [ebp + 0x24]
mov esi, 0xfffffff4
push dword [esp + esi + 0x54]
push edi
call dword [edi + 4]
add esp, 8
add esi, 4
jne 0x4d4961
test ebx, ebx
je 0x4d498d
mov ecx, dword [esp + 0x310]
xor ecx, ebp
call fcn.00527311
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4d4975
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 3
movzx eax, byte [eax + ecx]
mov ecx, edx
and cl, 7
shl eax, cl
test al, 0x80
je 0x4d4975
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
call fcn.00474594
mov ecx, dword [esi + 0x10]
mov esi, dword [ebp + 0xc]
xor edx, edx
cmp eax, dword [ecx + esi*4]
setne dl
lea ebx, [edx + edx*2]
jmp 0x4d4975
mov ebx, eax
jmp 0x4d4959
xor ebx, ebx
inc ebx
jmp 0x4d4959
xor ebx, ebx
jmp 0x4d4959
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
jmp 0x4d4959
mov ebx, 5
jmp 0x4d4959