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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x104e9a0
add esp, 0xffffff80
lea edi, [esp + 0x88]
xor eax, eax
call fcn.010629a6
mov ecx, dword [esp + 0x84]
jmp 0x104e43b
mov edx, dword [esp + 0x84]
xor eax, eax
mov ecx, edx
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x38], edx
mov esi, dword [ecx + 0xc]
lea ebx, [ecx + 0xc]
mov dword [esp + 0x54], ebx
cmp edx, 2
jge 0x104e96d
mov ebp, dword [ecx + 4]
mov edi, ebx
mov ebx, dword [ecx]
mov edx, dword [ecx + 8]
test ebp, ebp
je 0x104e7b5
mov esi, dword [ebx]
dec ebp
mov dword [ecx + 4], ebp
dec edx
mov dword [ecx + 8], edx
mov ebp, dword [0x1180500]
neg edx
sar edx, 0x1f
and edx, 4
add edx, ebx
test ebp, ebp
jne 0x104e7a7
mov dword [ecx], edx
mov dword [esp + 0x20], esi
mov dword [esp], esi
call fcn.0104f680
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x104e5bd
mov ecx, dword [0x1169598]
test ecx, ecx
je 0x104e430
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0104e9b0
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 8]
lea ebx, [ecx + edx]
mov dword [esp + 0x38], ebx
mov ebp, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov edi, dword [esp + 4]
cmp ebx, ebp
ja 0x104e56f
cmp ebx, ecx
jb 0x104e996
mov dword [esp + 0x34], ebp
mov dword [esp + 0x50], esi
lea eax, [0xf92ce0]
mov dword [esp], eax
sub ebp, ecx
lea ecx, [ecx + ecx*4]
xchg ebp, ebx
neg ebx
xchg ebp, ebx
shl ecx, 3
sar ebp, 0x1f
and ebp, ecx
lea ecx, [esi + ebp]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
call fcn.010186f0
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x84]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x14], eax
mov eax, dword [0x1180500]
test eax, eax
jne 0x104e557
mov ecx, dword [esp + 0x50]
mov dword [edi + 0xc], ecx
jmp 0x104e430
mov eax, edi
mov edi, dword [esp + 0x54]
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.01062710
mov edi, ecx
jmp 0x104e430
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x4c], edi
lea eax, [0xf92ce0]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.0104a130
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x4c]
jmp 0x104e4e8
mov edx, dword [eax]
test edx, edx
jne 0x104e5c6
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x20]
cmp ebx, edx
jbe 0x104e5d3
dec ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0104fcc0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x44]
cmp byte [edx + 0x23], 4
ja 0x104e793
xor ebx, ebx
test ebx, ebx
jne 0x104e702
mov ebx, edx
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x58]
mov ebp, eax
xor eax, eax
call fcn.010629a6
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebp
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ebx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx + 0x10]
lea ebx, [edx + 1]
mov ebp, dword [ecx + 0xc]
mov esi, ecx
mov ecx, dword [ecx + 0x14]
cmp ecx, ebx
jb 0x104e6a9
lea ecx, [edx + 1]
mov dword [esi + 0x10], ecx
mov ecx, dword [0x1180500]
lea edx, [edx + edx*4]
lea edi, [ebp + edx*8]
test ecx, ecx
jne 0x104e688
lea esi, [esp + 0x58]
call fcn.01062e5c
jmp 0x104e430
lea eax, [0xf92ce0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
call fcn.010185d0
xor eax, eax
jmp 0x104e430
lea eax, [0xf92ce0]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
call fcn.0104a130
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x84]
mov dword [ebx + 0x14], edx
mov edx, dword [0x1180500]
test edx, edx
jne 0x104e6f7
mov dword [ebx + 0xc], eax
mov esi, ebx
mov edx, ecx
mov ebp, eax
xor eax, eax
jmp 0x104e663
mov edi, dword [esp + 0x54]
call fcn.01062710
jmp 0x104e6ea
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], eax
mov dword [esp], edx
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
call fcn.010501c0
mov eax, dword [esp + 0x14]
test eax, eax
jge 0x104e759
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
mov ebp, edx
mov edx, eax
mov eax, ebp
jmp 0x104e60d
cmp eax, 0x100000
jae 0x104e98c
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + eax*4 + 0xc]
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0104fd40
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
xor eax, eax
jmp 0x104e74a
lea ebp, [edx + 0x23]
mov ebx, ebp
mov ebp, dword [edx + 0x1c]
lea ebp, [ebx + ebp*4 + 0x11]
mov ebx, dword [ebp]
jmp 0x104e603
mov edi, ecx
mov eax, edx
call fcn.01062710
jmp 0x104e48b
mov edx, dword [esp + 0x38]
test edx, edx
je 0x104e961
cmp edx, 1
jne 0x104e874
mov eax, edi
lea edi, [esp + 0x88]
call fcn.01062e5c
mov ecx, dword [esp + 0x84]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 2
mov edx, dword [0x1180500]
lea ebx, [ecx + 0x18]
test edx, edx
jne 0x104e869
mov dword [ecx + 0xc], ebx
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0xa8]
test ecx, ecx
jne 0x104e81b
test eax, eax
setg al
mov byte [esp + 0xb0], al
sub esp, 0xffffff80
ret
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xac]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 0
call fcn.0104fdc0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov eax, dword [esp + 0x38]
jmp 0x104e80b
mov edi, eax
mov eax, ebx
call fcn.01062710
jmp 0x104e7fd
cmp edx, 2
jne 0x104e90a
mov eax, edi
lea edi, [esp + 0x88]
call fcn.01062e5c
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx + 0x10]
mov ebx, dword [ecx + 0xc]
cmp edx, 1
jbe 0x104e980
lea edi, [ecx + 0x18]
mov edx, dword [0x1180500]
lea esi, [ebx + 0x28]
test edx, edx
jne 0x104e8ee
call fcn.01062e5c
mov ecx, dword [esp + 0x84]
mov dword [ecx + 0x10], 1
mov dword [ecx + 0x14], 2
mov edx, dword [0x1180500]
lea ebx, [ecx + 0x18]
test edx, edx
jne 0x104e8e0
mov dword [ecx + 0xc], ebx
jmp 0x104e7fd
mov edi, eax
mov eax, ebx
call fcn.01062710
jmp 0x104e7fd
lea eax, [0xf92ce0]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], esi
call fcn.010185d0
mov eax, dword [esp + 0x54]
jmp 0x104e8b6
mov eax, edi
lea edi, [esp + 0x88]
call fcn.01062e5c
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx + 0x10]
mov ebx, dword [ecx + 0xc]
mov ebp, dword [ecx + 0x14]
cmp edx, 1
jb 0x104e974
dec edx
mov dword [ecx + 0x10], edx
lea edx, [ebp - 1]
mov dword [ecx + 0x14], edx
mov ebp, dword [0x1180500]
neg edx
sar edx, 0x1f
and edx, 0x28
add edx, ebx
test ebp, ebp
jne 0x104e953
mov dword [ecx + 0xc], edx
jmp 0x104e7fd
mov edi, eax
mov eax, edx
call fcn.01062710
jmp 0x104e7fd
mov byte [esp + 0xb0], 0
sub esp, 0xffffff80
ret
mov edi, ebx
jmp 0x104e7b5
mov eax, 1
mov ecx, edx
call fcn.010627f0
mov eax, 1
mov ecx, edx
call fcn.01062790
mov ecx, 0x100000
call fcn.01062790
mov eax, ecx
mov ecx, ebx
call fcn.010627f0
nop
call fcn.010611c0
jmp fcn.0104e400