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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x48], 0xffffffff
xor esi, esi
mov edi, dword [ebx + 8]
mov edx, dword [ebx]
mov ebx, dword [ebx + 4]
mov dword [esp + 0x1c], esi
movzx eax, byte [edi + 0x10]
mov dword [esp + 0x40], 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x34], edx
lea ecx, [eax + eax*8]
mov dword [esp + 0x3c], ebx
mov eax, dword [edx + 4]
lea ecx, [ecx + 1]
test byte [eax + ecx*8 + 0x28], 2
lea ecx, [eax + ecx*8]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
je 0x4d60e6
mov ebx, dword [ecx + 0x44]
jmp 0x4d618f
test byte [eax + 0x1c], 0x80
je 0x4d60f4
mov ebx, dword [eax + 8]
jmp 0x4d618f
lea ebx, [esp + 0x48]
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], ebx
xorps xmm0, xmm0
lea ebx, [esp + 0x44]
movlpd qword [esp + 0x8f], xmm0
mov dword [esp + 0x60], ebx
mov ebx, 3
or dword [esp + 0x90], ebx
mov dword [esp + 0x58], esi
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x97], xmm0
mov byte [esp + 0x9f], 0
mov dword [esp + 0x8a], 0x10001
mov byte [esp + 0x8e], 5
mov word [esp + 0x88], bx
mov ax, word [eax + 0x26]
mov word [esp + 0x44], ax
xor eax, eax
mov word [esp + 0x46], ax
test byte [ecx + 0x28], 1
jne 0x4d618b
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x6c], eax
lea ebx, [esp + 0x58]
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], ebx
cmp dword [eax + 0xc], esi
jne 0x4d6304
mov eax, 0x1020
test word [edx + 0x28], ax
jne 0x4d6304
mov eax, dword [edx]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
and eax, 0x8000
or eax, 0
je 0x4d6304
mov eax, dword [ecx + 0x28]
test al, 3
jne 0x4d6304
mov edx, dword [esp + 0x20]
test byte [edx + 0x1c], 0x80
jne 0x4d6304
test al, 0x48
jne 0x4d6304
test byte [ecx + 0x24], 0x10
jne 0x4d6304
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
shl eax, 4
add eax, esi
mov dword [esp + 0x24], eax
movzx eax, word [edx + 0x26]
push eax
mov dword [esp + 0x3c], eax
call fcn.00454c60
movzx eax, ax
add esp, 4
mov dword [esp + 0x10], eax
nop dword [eax]
cmp esi, dword [esp + 0x24]
jae 0x4d62fc
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
and ecx, dword [esi + 0x20]
and eax, dword [esi + 0x24]
or ecx, eax
jne 0x4d62e6
push ecx
push ecx
push dword [esp + 0x1c]
push esi
call fcn.004c9c90
add esp, 0x10
test eax, eax
je 0x4d62e6
mov eax, dword [edi + 0x38]
mov ecx, 1
mov edx, dword [esp + 0x20]
mov word [edi + 0x18], cx
mov dword [edi + 0x30], ecx
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x20], 0
mov dword [eax], esi
mov eax, dword [esp + 0x38]
add eax, ecx
mov word [edi + 0x12], ax
cmp byte [edx + 0x2b], 2
je 0x4d6293
test dword [edx + 0x1c], 0x4000
jne 0x4d6293
add eax, 0x1c
jmp 0x4d6296
add eax, 0xffffffe7
movzx eax, ax
mov word [edi + 0x12], ax
test ax, ax
jns 0x4d62a8
xor eax, eax
mov word [edi + 0x12], ax
mov eax, 0x2b
push eax
push ecx
mov word [edi + 0x16], ax
call fcn.0049b610
mov ecx, dword [ebp + 0xc]
mov word [edi + 0x14], ax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x2c], 0x4000
or ecx, dword [esi + 0x20]
or eax, dword [esi + 0x24]
push edi
push dword [ebp + 8]
mov dword [edi], ecx
mov dword [edi + 4], eax
call fcn.004d8090
add esp, 0x10
mov dword [esp + 0x1c], eax
jmp 0x4d62ea
mov eax, dword [esp + 0x1c]
add esi, 0x30
test eax, eax
je 0x4d6220
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
test ebx, ebx
je 0x4d66d2
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x4d6330
push eax
push dword [esp + 0x40]
movzx eax, byte [ecx + 0x24]
push eax
push dword [ecx + 0x2c]
call fcn.004da830
add esp, 0x10
test eax, eax
je 0x4d66b1
test dword [ebx + 0x38], 0x200
jne 0x4d66b1
mov eax, dword [ebx + 8]
xor ecx, ecx
movzx eax, word [eax]
mov dword [edi + 0x18], ecx
mov word [edi + 0x1c], cx
mov dword [edi + 0x30], ecx
mov byte [edi + 0x11], cl
mov word [edi + 0x12], cx
mov ecx, dword [ebp + 0xc]
mov word [edi + 0x16], ax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
mov dword [edi], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], ecx
mov dword [edi + 0x20], ebx
push dword [eax + 0x2c]
push ebx
push dword [ebp + 8]
call fcn.00460520
mov edx, dword [ebx + 0x38]
add esp, 0xc
mov ecx, edx
mov esi, eax
and ecx, 3
mov dword [esp + 0x38], esi
cmp cl, 3
jne 0x4d63dd
mov eax, dword [esp + 0x40]
xor edx, edx
test esi, esi
movzx ecx, al
mov esi, dword [esp + 0x24]
push esi
push edi
push dword [esp + 0x44]
cmovne edx, ecx
mov dword [edi + 0x2c], 0x100
lea eax, [esi + 0x10]
mov byte [edi + 0x11], dl
mov word [edi + 0x14], ax
call fcn.004d8340
push edi
push dword [ebp + 8]
call fcn.004d8090
add esp, 0x14
mov word [edi + 0x16], si
test eax, eax
jne 0x4d66d4
jmp 0x4d6680
test dl, 0x20
je 0x4d63fc
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
jmp 0x4d64a6
mov edx, dword [esp + 0x14]
mov esi, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x24]
and ecx, dword [edx + 0x3c]
and esi, dword [edx + 0x38]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x4d6448
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
push eax
mov eax, dword [esp + 0x44]
push ebx
push dword [eax]
call fcn.004d8930
mov ecx, dword [esp + 0x44]
add esp, 0x18
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [edi + 0x2c], 0x200
test esi, esi
jne 0x4d645b
cmp ecx, 0x80000000
je 0x4d6472
mov eax, dword [ebx + 0x38]
test eax, 0x1000
je 0x4d64a0
test eax, 0x800
jne 0x4d64a0
mov eax, esi
or eax, ecx
je 0x4d64a6
push dword [edx + 0x2c]
push ebx
push dword [esp + 0x3c]
call fcn.004d5a30
add esp, 0xc
test eax, eax
je 0x4d6492
or dword [edi + 0x2c], eax
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
jmp 0x4d64ad
mov eax, esi
or eax, ecx
jne 0x4d64ad
mov dword [edi + 0x2c], 0x240
mov edx, dword [esp + 0x38]
test edx, edx
jne 0x4d651c
mov eax, dword [esp + 0x20]
test byte [eax + 0x1c], 0x80
jne 0x4d651c
cmp dword [ebx + 0x24], edx
jne 0x4d651c
mov eax, dword [esp + 0x14]
test byte [eax + 0x28], 2
jne 0x4d651c
mov eax, esi
or eax, ecx
jne 0x4d6680
test byte [ebx + 0x38], 4
jne 0x4d6680
mov ecx, dword [esp + 0x20]
mov ax, word [ebx + 0x30]
cmp ax, word [ecx + 0x28]
jge 0x4d6680
mov eax, dword [esp + 0x34]
test byte [eax + 0x28], 4
jne 0x4d6680
cmp byte [0x5320f7], dl
je 0x4d6680
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x20
jne 0x4d6680
mov eax, dword [esp + 0x40]
xor ecx, ecx
movzx eax, al
test edx, edx
cmovne ecx, eax
mov byte [edi + 0x11], cl
movsx ecx, word [ebx + 0x30]
mov eax, ecx
shl eax, 4
sub eax, ecx
mov ecx, dword [esp + 0x20]
cdq
movsx ecx, word [ecx + 0x28]
idiv ecx
mov ecx, dword [esp + 0x24]
inc eax
add eax, ecx
or esi, dword [esp + 0x10]
mov word [edi + 0x14], ax
je 0x4d6642
lea eax, [ecx + 0x10]
xor edx, edx
mov ecx, dword [esp + 0x34]
movzx esi, ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x38], eax
cmp dword [ecx + 0x5c], edx
jle 0x4d662c
mov eax, dword [esp + 0x18]
xor edi, edi
mov ebx, dword [ecx + 0x68]
xorps xmm0, xmm0
mov edx, dword [esp + 0x38]
mov dword [esp + 0x54], edx
lea edx, [esp + 0x50]
mov dword [esp + 0xbc], edx
mov ecx, dword [ebx + edi]
mov edx, dword [esp + 0x10]
mov dword [esp + 0xa4], 0
movlpd qword [esp + 0xac], xmm0
movlpd qword [esp + 0xb4], xmm0
mov dword [esp + 0x50], eax
mov dword [esp + 0xa8], 0x457a60
test ecx, ecx
je 0x4d65eb
push ecx
lea eax, [esp + 0xa8]
push eax
call fcn.004bfe10
mov eax, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x10]
cmp word [esp + 0xb8], 0
jne 0x4d6624
movzx ecx, word [ebx + edi + 8]
test cx, cx
jg 0x4d6604
add esi, ecx
jmp 0x4d660f
dec esi
test byte [ebx + edi + 0xc], 0x82
je 0x4d660f
sub esi, 0x13
mov ecx, dword [esp + 0x34]
inc edx
add edi, 0x30
mov dword [esp + 0x10], edx
cmp edx, dword [ecx + 0x5c]
jl 0x4d6582
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x18]
movzx eax, word [edi + 0x14]
push esi
push eax
call fcn.0049b610
mov ecx, dword [esp + 0x2c]
add esp, 8
mov word [edi + 0x14], ax
push ecx
push edi
push dword [esp + 0x44]
call fcn.004d8340
mov eax, dword [esp + 0x20]
add esp, 0xc
test byte [eax + 0x24], 0x10
je 0x4d6660
cmp dword [ebx + 0x28], 0
jne 0x4d6670
push edi
push dword [ebp + 8]
call fcn.004d8090
add esp, 8
mov ecx, eax
jmp 0x4d6674
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov word [edi + 0x16], ax
test ecx, ecx
jne 0x4d66db
mov eax, dword [ebp + 8]
push 0
push ebx
push dword [esp + 0x1c]
mov byte [eax + 0x10], 0
push eax
call fcn.004d66f0
mov esi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], esi
cmp byte [eax + 0x10], 1
jne 0x4d66b1
mov edx, dword [esp + 0x20]
or dword [edx + 0x1c], 0x100
mov ecx, dword [esp + 0x14]
test byte [ecx + 0x28], 2
je 0x4d66bf
xor ebx, ebx
jmp 0x4d66c2
mov ebx, dword [ebx + 0x14]
inc dword [esp + 0x40]
mov dword [esp + 0x18], ebx
test esi, esi
je 0x4d6304
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret