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

Disassembly:
push 0xffffffffffffffff
push 0x4af326
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov eax, dword [esp + 0x68]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [eax + 0x18]
xor ebx, ebx
mov edi, dword [esi + 0x54]
xor edx, edx
cmp ecx, edi
lea ecx, [esp + 0x54]
sete dl
mov dword [esp + 0x14], ebx
mov edi, edx
mov dword [esp + 0x20], ebx
call fcn.0050d46e
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], ebx
call fcn.0050d46e
lea ecx, [esp + 0x10]
mov dword [esp + 0x70], 1
call fcn.0050d46e
cmp edi, ebx
mov byte [esp + 0x70], 2
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
jne 0x4e701e
mov eax, dword [esp + 0x78]
add eax, 0x48
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4e689b
mov dword [esp + 0x18], ecx
jmp 0x4e68a7
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x18], eax
mov ecx, dword [0x4de8b0]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x24], ebx
mov edx, dword [ecx + 0xab4]
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [edx + 0x1448]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x4e69aa
mov ecx, dword [esp + 0x78]
lea eax, [ecx + 0x48]
mov eax, dword [ecx + 0x4c]
mov edi, dword [eax + ebx*4]
mov eax, dword [edi + 8]
test eax, eax
je 0x4e699d
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4e699d
push edi
mov ecx, esi
call fcn.004e3a08
test eax, eax
je 0x4e691c
mov dword [esp + 0x38], 1
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], 1
add eax, dword [edx + 0x24]
cmp ebp, eax
mov dword [esp + 0x24], eax
jge 0x4e6967
lea eax, [ebp + 0xa]
cmp eax, 0x3e8
jg 0x4e69aa
cmp eax, dword [esp + 0x30]
ja 0x4e6967
mov ebp, eax
mov eax, dword [0x4de8b0]
mov ecx, dword [eax + 0xab4]
mov eax, dword [ecx + 0x1430]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x1c]
lea ecx, [eax + edx*2]
mov dword [esp + 0x1c], ecx
push edi
mov ecx, esi
call fcn.004e3a08
test eax, eax
je 0x4e699d
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edi, dword [edx + 0x3c]
mov edx, dword [esp + 0x1c]
add eax, edi
mov dword [esp + 0x28], eax
sub eax, edx
cmp eax, ecx
jle 0x4e699d
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, eax
jb 0x4e68e5
test byte [0x4de11c], 0x80
je 0x4e6ccb
mov eax, dword [0x4de140]
test eax, eax
jne 0x4e69ef
mov eax, dword [esp + 0x78]
add eax, 0x48
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x4e69ef
mov ecx, esi
call fcn.004fa858
mov edx, dword [esp + 0x78]
mov ecx, eax
mov edi, dword [edx + 0x150]
lea eax, [edx + 0x48]
sub ecx, edi
cmp ecx, dword [eax + 0x44]
jb 0x4e6ccb
mov dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x78]
mov eax, dword [ebx + 0x5c]
lea ebp, [ebx + 0x48]
test eax, eax
je 0x4e6ccb
mov ecx, dword [ebp + 0x18]
sub ecx, eax
mov eax, dword [esp + 0x1c]
sar ecx, 2
cmp eax, ecx
jae 0x4e6ccb
mov eax, dword [ebx + 0x30]
add ebx, 0x30
cmp eax, 2
ja 0x4e6ccb
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x1c]
mov edi, dword [eax + edx*4]
test edi, edi
je 0x4e6cc2
cmp dword [edi + 8], 3
jne 0x4e6cc2
mov eax, dword [edi + 4]
mov ecx, esi
push eax
call fcn.004c9598
mov dword [esp + 0x24], eax
mov eax, dword [0x4de12c]
test eax, eax
jne 0x4e6a75
mov ecx, dword [esp + 0x24]
push ecx
push ebp
mov ecx, esi
call fcn.004ea0a8
test eax, eax
jne 0x4e6cc2
mov ecx, esi
mov dword [esi + 0x1f4], 1
call fcn.004fa858
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x204], eax
mov eax, dword [edi + 4]
lea edx, [esp + 0x54]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004d1888
test eax, eax
je 0x4e6beb
push 0
push ebx
call dword [fcn.004b404c]
mov dword [edi + 8], 2
mov eax, dword [ebp + 4]
test eax, eax
jne 0x4e6ac4
xor edx, edx
jmp 0x4e6acc
mov edx, dword [ebp + 8]
sub edx, eax
sar edx, 2
xor ecx, ecx
test edx, edx
jbe 0x4e6af8
mov eax, dword [ebp + 4]
mov eax, dword [eax + ecx*4]
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x4e6af3
mov ebx, dword [eax]
cmp ebx, dword [edi + 4]
jne 0x4e6af3
cmp dword [eax + 0x3c], 3
jne 0x4e6af3
mov dword [eax + 0x3c], 2
inc ecx
cmp ecx, edx
jb 0x4e6ad2
mov eax, dword [esp + 0x64]
test eax, eax
jl 0x4e6b41
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x2c]
push edx
push eax
mov ecx, esi
call fcn.004d1bf8
mov ecx, dword [esp + 0x58]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x4d62d8
push eax
mov byte [esp + 0x80], 3
call fcn.0050d5e2
add esp, 0x10
mov byte [esp + 0x70], 2
lea ecx, [esp + 0x2c]
jmp 0x4e6bcf
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4e6b4e
mov edi, dword [eax + 0xc]
jmp 0x4e6b68
push 0x4d62cc
lea ecx, [esp + 0x4c]
call fcn.0050d630
or dword [esp + 0x14], 1
mov edi, dword [eax]
mov byte [esp + 0x70], 4
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
call fcn.004d1bf8
mov ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x70], 5
cdq
xor eax, edx
sub eax, edx
push eax
mov eax, dword [ecx]
push edi
push eax
lea ecx, [esp + 0x1c]
push 0x4d62a8
push ecx
call fcn.0050d5e2
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 4
call fcn.0050d468
mov al, byte [esp + 0x14]
mov dword [esp + 0x70], 2
test al, 1
je 0x4e6bd4
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x48]
and al, 0xfe
mov dword [esp + 0x14], eax
call fcn.0050d468
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push 0xa
mov ecx, esi
call dword [edx + 4]
inc dword [esp + 0x1c]
jmp 0x4e69f7
push 0x4d5e40
lea ecx, [esp + 0x58]
call fcn.0050d690
test eax, eax
jl 0x4e6c04
push ebx
call dword [fcn.004b40d0]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4e6c11
mov edi, dword [eax + 0xc]
jmp 0x4e6c2b
push 0x4d62cc
lea ecx, [esp + 0x54]
call fcn.0050d630
or dword [esp + 0x14], 2
mov edi, dword [eax]
mov byte [esp + 0x70], 6
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x4c]
push ecx
push edx
mov ecx, esi
call fcn.004d1bf8
mov ecx, dword [esp + 0x54]
mov edx, dword [eax]
push ecx
push edi
push edx
lea eax, [esp + 0x1c]
push 0x4d6290
push eax
mov dword [esp + 0x84], 7
call fcn.0050d5e2
add esp, 0x14
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 6
call fcn.0050d468
mov al, byte [esp + 0x14]
mov dword [esp + 0x70], 2
test al, 2
je 0x4e6c93
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x50]
and al, 0xfd
mov dword [esp + 0x14], eax
call fcn.0050d468
push 0x4d5e40
lea ecx, [esp + 0x58]
call fcn.0050d690
test eax, eax
jl 0x4e6cac
push ebx
call dword [fcn.004b40d0]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push 0xb
mov ecx, esi
call dword [edx + 4]
mov dword [esp + 0x20], 1
inc dword [esp + 0x1c]
jmp 0x4e69f7
mov eax, dword [0x4de11c]
test al, 0x80
je 0x4e6feb
test ah, 1
je 0x4e6e1c
mov eax, dword [esp + 0x30]
mov ecx, dword [0x4de18c]
cmp eax, ecx
jb 0x4e6e1c
mov ecx, dword [0x4de150]
test ecx, ecx
je 0x4e6d0d
cmp dword [esi + 0x2a4], 0x12c
jae 0x4e6e1c
mov ecx, dword [0x4de144]
test ecx, ecx
je 0x4e6d3b
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4e6e1c
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4e6e1c
cmp eax, 0xa
jb 0x4e6d47
mov edi, 0xa
jmp 0x4e6d53
mov eax, dword [esp + 0x3c]
test eax, eax
jl 0x4e6e1c
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4e6e1c
mov ebx, 1
mov ecx, esi
mov dword [esi + 0x1f4], ebx
call fcn.004fa858
mov ebp, dword [esp + 0x78]
lea ecx, [esp + 0x54]
push ecx
push edi
push 0
push ebp
mov ecx, esi
mov dword [esi + 0x204], eax
call fcn.004d3118
test eax, eax
push ebp
je 0x4e6dcc
lea edx, [esp + 0x7c]
mov ecx, esi
push edx
call fcn.004d1bf8
mov eax, dword [eax]
push edi
push eax
lea ecx, [esp + 0x18]
push 0x4d6270
push ecx
mov byte [esp + 0x80], 8
call fcn.0050d5e2
add esp, 0x10
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 2
call fcn.0050d468
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push 0xa
mov ecx, esi
call dword [edx + 4]
jmp 0x4e6e20
lea ecx, [esp + 0x7c]
push ecx
mov ecx, esi
call fcn.004d1bf8
mov edx, dword [esp + 0x54]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x4d6250
push ecx
mov byte [esp + 0x80], 9
call fcn.0050d5e2
add esp, 0x10
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 2
call fcn.0050d468
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push 0xb
mov ecx, esi
mov dword [esp + 0x28], ebx
call dword [edx + 4]
jmp 0x4e6e20
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x18]
xor ebx, ebx
test eax, eax
jbe 0x4e6fef
mov eax, dword [ebp + 0x4c]
mov edi, dword [eax + ebx*4]
mov eax, dword [edi + 8]
test eax, eax
je 0x4e6f3b
cmp dword [ebp + 0x30], 2
ja 0x4e6f48
push edi
mov ecx, esi
call fcn.004e3a08
test eax, eax
je 0x4e6f3b
push edi
mov ecx, esi
call fcn.004e39f8
test eax, eax
jne 0x4e6f3b
mov eax, dword [0x4de150]
mov dword [esp + 0x44], 1
test eax, eax
je 0x4e6e8a
cmp dword [esi + 0x2a4], 0x12c
jae 0x4e6f3b
mov ecx, esi
mov dword [esi + 0x1f4], 1
call fcn.004fa858
mov dword [esi + 0x204], eax
mov edx, dword [edi + 0x28]
lea ecx, [esp + 0x54]
push ecx
push edx
push ebp
mov ecx, esi
call fcn.004d02b8
test eax, eax
push ebp
je 0x4e6f6d
lea eax, [esp + 0x7c]
mov ecx, esi
push eax
call fcn.004d1bf8
mov ecx, dword [edi + 4]
mov byte [esp + 0x70], 0xa
mov edx, dword [ecx + 8]
mov ecx, dword [edi + 0x28]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x1c]
push 0x4d6234
push eax
call fcn.0050d5e2
add esp, 0x14
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 2
call fcn.0050d468
mov ecx, dword [ebp + 0x18]
mov eax, dword [esi + 0x54]
cmp ecx, eax
je 0x4e6f2d
lea edx, [esp + 0x54]
mov ecx, esi
push edx
push 1
call fcn.004e9008
test al, 1
jne 0x4e6f2d
mov eax, dword [0x4de150]
test eax, eax
je 0x4e6f2d
push 0x4d6224
lea ecx, [esp + 0x14]
call fcn.0050d6a8
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
push 0xa
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, eax
jb 0x4e6e2e
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4e6fef
mov edx, dword [0x4de1c4]
mov ecx, esi
push edx
call fcn.004e3978
mov dword [esi + 0x2c8], eax
jmp 0x4e6fef
lea edx, [esp + 0x7c]
mov ecx, esi
push edx
call fcn.004d1bf8
mov ecx, dword [esp + 0x54]
mov edx, dword [edi + 4]
mov eax, dword [eax]
push ecx
mov ecx, dword [edx + 8]
mov edx, dword [edi + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push 0x4d6200
push ecx
mov byte [esp + 0x88], 0xb
call fcn.0050d5e2
add esp, 0x18
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 2
call fcn.0050d468
push 0x4d5e40
lea ecx, [esp + 0x58]
call fcn.0050d690
test eax, eax
jl 0x4e6fd0
lea edx, [ebp + 0x30]
push edx
call dword [fcn.004b40d0]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
push 0xb
mov ecx, esi
call dword [eax + 4]
mov dword [esp + 0x20], 1
jmp 0x4e6f54
mov ebp, dword [esp + 0x78]
mov eax, dword [0x4de11c]
test ah, 2
je 0x4e7001
push ebp
mov ecx, esi
call fcn.004e7a58
test byte [0x4de198], 8
je 0x4e701e
push ebp
mov ecx, esi
call fcn.004ea348
test eax, eax
je 0x4e701e
push ebp
mov ecx, esi
call fcn.004cbd58
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 1
call fcn.0050d468
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xc
call fcn.0050d468
lea ecx, [esp + 0x54]
mov dword [esp + 0x70], 0xffffffff
call fcn.0050d468
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4