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

Disassembly:
push 0xffffffffffffffff
push 0x4affb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x464
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 0x4d4840
mov dword [esp + 0x58], esi
mov dword [esp + 0x38], edi
call dword [0x4b481c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.0050d46e
lea ecx, [esp + 0x4c]
mov dword [esp + 0x47c], edi
call fcn.0050d46e
lea ecx, [esp + 0x24]
mov byte [esp + 0x47c], 1
call fcn.0050d46e
lea ecx, [esp + 0x28]
mov byte [esp + 0x47c], 2
call fcn.0050d46e
mov edi, dword [esi + 0x78]
mov ebx, dword [esi + 0x74]
add esi, 0x70
cmp edi, edi
mov byte [esp + 0x47c], 3
mov ebp, edi
je 0x4ee8a7
push ebp
mov ecx, ebx
call fcn.004bd548
add ebp, 0xc
add ebx, 0xc
cmp ebp, edi
jne 0x4ee895
mov ebp, dword [esi + 8]
mov edi, ebx
cmp ebx, ebp
je 0x4ee8be
mov ecx, edi
call fcn.004b95f8
add edi, 0xc
cmp edi, ebp
jne 0x4ee8b0
mov eax, dword [esp + 0x20]
mov dword [esi + 8], ebx
test eax, eax
je 0x4eed7c
mov edi, dword [0x4b4800]
push 0
push 0x4d4830
push 0
push eax
call edi
test eax, eax
je 0x4eed7c
push 0
push 0x4d4824
push 0
push eax
call edi
test eax, eax
je 0x4eed7c
push 0
push 0x4d4814
push 0
push eax
call edi
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x20], ebx
je 0x4eed7c
lea eax, [esp + 0x30]
push eax
push ebx
call dword [0x4b4814]
mov ecx, dword [esp + 0x30]
push ecx
push 0
push 0x1f0fff
call dword [fcn.004b4124]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x4eed7c
push 4
push 0x1000
push 0x1000
push 0
push ebp
call dword [0x4b4120]
mov edi, eax
test edi, edi
mov dword [esp + 0x34], edi
je 0x4eed75
push 0
push 0
push 0x418
push ebx
call dword [fcn.004b4824]
xor ecx, ecx
mov dword [esp + 0x44], eax
test eax, eax
mov dword [esp + 0x38], ecx
jle 0x4eed63
jmp 0x4ee98c
mov ebx, dword [esp + 0x20]
push edi
push ecx
push 0x417
push ebx
call dword [fcn.004b4824]
xor edx, edx
mov ebx, dword [0x4b4180]
mov dword [esp + 0x60], edx
lea eax, [esp + 0x60]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
push edx
push 0x14
push eax
push edi
push ebp
mov dword [esp + 0x84], edx
call ebx
test eax, eax
je 0x4eed46
mov edx, dword [esp + 0x70]
cmp edx, 0xffffffff
je 0x4eed46
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x76]
mov word [esp + 0x74], 0
rep stosd dword es:[edi], eax
push 0
lea ecx, [esp + 0x78]
push 0x400
push ecx
push edx
push ebp
stosw word es:[edi], ax
call ebx
test eax, eax
je 0x4eed46
lea edx, [esp + 0x74]
lea ecx, [esp + 0x10]
push edx
xor ebp, ebp
call fcn.0050d7ce
lea eax, [esp + 0x3c]
push 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x484], 4
call fcn.0050d600
mov eax, dword [eax]
mov edi, dword [fcn.004b46f0]
push 0x4d480c
push eax
mov byte [esp + 0x484], 5
call edi
add esp, 8
test eax, eax
je 0x4eea7e
lea ecx, [esp + 0x54]
push 4
push ecx
lea ecx, [esp + 0x18]
call fcn.0050d600
mov eax, dword [eax]
push 0x4d4804
push eax
call edi
add esp, 8
lea ecx, [esp + 0x54]
test eax, eax
sete bl
call fcn.0050d468
test bl, bl
je 0x4eea99
push 0x4d47f8
lea ecx, [esp + 0x14]
call fcn.0050d690
test eax, eax
setge al
test al, al
je 0x4eea99
mov bl, 1
jmp 0x4eea9b
xor bl, bl
lea ecx, [esp + 0x3c]
mov byte [esp + 0x47c], 4
call fcn.0050d468
test bl, bl
je 0x4eeb62
push 0x4d2b34
lea ecx, [esp + 0x14]
call fcn.0050d690
test eax, eax
jl 0x4eeb62
lea edx, [esp + 0x5c]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0050d600
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x480], 6
call fcn.0050d5e8
lea ecx, [esp + 0x5c]
mov byte [esp + 0x47c], 4
call fcn.0050d468
push 0x4d1638
lea ecx, [esp + 0x14]
call fcn.0050d690
push 0x4d47f4
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0050d690
test edi, edi
jl 0x4eeb62
test eax, eax
jl 0x4eeb62
cmp eax, edi
jle 0x4eeb62
sub eax, edi
lea ecx, [esp + 0x10]
dec eax
inc edi
push eax
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.0050d6b4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x480], 7
call fcn.0050d5e8
lea ecx, [esp + 0x48]
mov byte [esp + 0x47c], 4
call fcn.0050d468
mov ebp, 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x47c], 3
call fcn.0050d468
test ebp, ebp
je 0x4eed46
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x5c]
push 4
push ecx
push edx
push eax
call dword [0x4b4180]
test eax, eax
je 0x4eed46
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [0x4b4814]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4eed46
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
call fcn.0050d5e8
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 8]
mov edi, dword [edx + 0x78]
mov edx, dword [esi + 0xc]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4eecaf
mov ecx, esi
call fcn.004be238
cmp eax, 1
jbe 0x4eec15
mov ecx, esi
call fcn.004be238
mov ebp, eax
jmp 0x4eec1a
mov ebp, 1
mov ecx, esi
call fcn.004be238
mov ebx, eax
add ebx, ebp
mov eax, ebx
jns 0x4eec2b
xor eax, eax
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
call fcn.0050d486
mov edx, dword [esi + 4]
add esp, 4
mov ebp, eax
mov ecx, esi
push ebp
push edi
push edx
call fcn.004be8c8
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], eax
push ecx
push 1
push eax
mov ecx, esi
call fcn.004be908
mov edx, dword [esp + 0x40]
mov eax, dword [esi + 8]
add edx, 0xc
mov ecx, esi
push edx
push eax
push edi
call fcn.004be8c8
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.004be898
mov eax, dword [esi + 4]
push eax
call fcn.0050d474
lea eax, [ebx + ebx*2]
add esp, 4
lea ecx, [ebp + eax*4]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.004be238
inc eax
mov dword [esi + 4], ebp
lea edx, [eax + eax*2]
lea eax, [ebp + edx*4]
mov dword [esi + 8], eax
jmp 0x4eed46
mov edx, ecx
mov eax, 0x2aaaaaab
sub edx, edi
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4eed15
lea edx, [edi + 0xc]
push edx
push ecx
push edi
mov ecx, esi
call fcn.004be8c8
mov ebx, dword [esi + 8]
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, esi
sub eax, edx
push eax
push ebx
call fcn.004be908
mov edx, dword [esi + 8]
lea ecx, [esp + 0x24]
push ecx
push edx
push edi
call fcn.004be988
add esp, 0xc
jmp 0x4eed42
push ecx
push ecx
add ecx, 0xfffffff4
push ecx
mov ecx, esi
call fcn.004be8c8
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffff4
push eax
push edi
call fcn.004be9c8
lea eax, [esp + 0x30]
lea ecx, [edi + 0xc]
push eax
push ecx
push edi
call fcn.004be988
add esp, 0x18
add dword [esi + 8], 0xc
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x18]
inc ecx
cmp ecx, eax
mov dword [esp + 0x38], ecx
jl 0x4ee988
push 0x8000
push 0x1000
push edi
push ebp
call dword [0x4b411c]
push ebp
call dword [fcn.004b4074]
mov eax, dword [esi + 4]
test eax, eax
jne 0x4eed87
xor edx, edx
jmp 0x4eed9c
mov esi, dword [esi + 8]
sub esi, eax
mov eax, 0x2aaaaaab
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
xor ecx, ecx
cmp ecx, edx
sbb esi, esi
neg esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x47c], 8
call fcn.0050d468
lea ecx, [esp + 0x24]
mov byte [esp + 0x47c], 1
call fcn.0050d468
lea ecx, [esp + 0x4c]
mov byte [esp + 0x47c], 0
call fcn.0050d468
lea ecx, [esp + 0x14]
mov dword [esp + 0x47c], 0xffffffff
call fcn.0050d468
mov ecx, dword [esp + 0x474]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x470
ret