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

Disassembly:
mov eax, dword [0x4e73e0]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + 0x60f4]
sub esp, 0x7c
push ebx
push ebp
mov ebp, dword [esp + 0x88]
xor ebx, ebx
cmp ecx, ebx
push esi
mov esi, dword [esp + 0xa0]
mov dword [ebp + 0x410], edx
je 0x103f8f
test byte [eax + 0x6114], 2
je 0x103f8f
mov edx, 1
jmp 0x103f91
xor edx, edx
mov eax, dword [eax + 0x2484]
test al, 0x20
mov dword [esp + 0x10], edx
je 0x103fb4
cmp ecx, ebx
je 0x103fb4
test eax, 0x200000
jne 0x103fb4
cmp edx, ebx
jne 0x103fb4
mov dword [ebp + 0x410], ebx
mov eax, dword [esp + 0x94]
mov dword [ebp + 0x418], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [eax]
cmp ecx, ebx
mov dword [esp + 0x14], ebx
je 0x103fd6
cmp dword [ecx + 0xc0], ebx
jne 0x103ff2
cmp eax, ebx
je 0x103ff2
mov ecx, dword [esi + 0x54]
shr ecx, 3
and ecx, 7
push ecx
push eax
call fcn.000abfa0
cmp eax, ebx
jne 0x105548
cmp byte [ebp + 0x414], 0
push edi
jne 0x104241
mov eax, dword [0x5271fc]
cmp eax, ebx
je 0x10401e
mov eax, dword [eax + 0x978]
cmp eax, ebx
je 0x10401e
mov edx, dword [eax]
push ebx
push 0x40
push edx
call fcn.0038d340
mov eax, ebp
call fcn.00103210
cmp eax, ebx
jne 0x105547
mov ecx, ebp
call fcn.00105700
mov esi, dword [0x4e73e0]
mov dword [ebp + 0xb4], eax
mov dword [ebp + 0xb0], eax
mov dword [ebp + 0xac], eax
xor eax, eax
lea ecx, [ebp + 0x430]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, 0x43
lea edi, [ebp + 0x440]
rep stosd dword es:[edi], eax
xor edi, edi
cmp dword [esi + 0x60c0], ebx
jbe 0x1040c3
lea ecx, [ebp + 0x400]
lea esp, [esp]
xor edx, edx
xor eax, eax
jmp 0x104090
mov ebx, dword [ecx - 0x1c0]
mov dword [eax + ebx], 0x2d3d
mov ebx, dword [ecx]
mov dword [edx + ebx], 0
add eax, 0x10
add edx, 4
cmp eax, 0x200
jb 0x104090
add edi, 1
add ecx, 4
xor ebx, ebx
cmp edi, dword [esi + 0x60c0]
jb 0x104080
mov edi, 1
mov dword [esp + 0x34], edi
mov eax, dword [esi + 0x233c]
mov edx, dword [esi + 0x2338]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
lea eax, [esp + 0x38]
push eax
mov eax, dword [esi + 0x2330]
push 0x20
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x54]
mov dword [esp + 0x64], ecx
mov ecx, edx
push ecx
push 4
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x3c]
push edx
push 0x80362000
push eax
mov dword [esp + 0x70], 0x1000085
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], 4
call sub.WIN32K.SYS_EngDeviceIoControl
mov eax, dword [0x4e73e0]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x1ac]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 7
mov edx, dword [eax + 0x2338]
mov dword [esp + 0x6c], edx
mov edx, dword [ecx]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x38]
push ecx
push 0x20
mov dword [esp + 0x78], edx
lea edx, [esp + 0x74]
push edx
push 4
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0x2330]
push 0x80362000
push edx
mov dword [esp + 0x90], 0x2000008
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], 8
call sub.WIN32K.SYS_EngDeviceIoControl
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x10]
cdq
mov dword [esp + 0x44], eax
mov eax, dword [0x4e73e0]
mov dword [esp + 0x48], edx
mov edx, dword [ebp + 0x1ac]
mov dword [esp + 0x40], edi
mov ecx, dword [eax + 0x2338]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edx]
lea edx, [esp + 0x3c]
mov dword [esp + 0x5c], edx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x50]
push 0x20
mov dword [esp + 0x5c], 0x7000001
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 0x10
mov dword [esp + 0x34], ecx
push ecx
mov eax, dword [eax + 0x2330]
push 4
lea edx, [esp + 0x3c]
push edx
push 0x80362000
push eax
call sub.WIN32K.SYS_EngDeviceIoControl
cmp dword [esp + 0x68], ebx
jne 0x104241
test byte [esp + 0x10], 1
je 0x104241
mov eax, dword [0x4e73e0]
or dword [eax + 0x2388], edi
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x2c]
push ecx
mov esi, ebp
call fcn.00103540
mov eax, dword [0x5272ec]
cmp eax, ebx
je 0x104278
cmp dword [eax + 0x850], ebx
je 0x104278
test dword [eax + 0x864], 0x222
jne 0x104278
mov eax, 1
jmp 0x10427a
xor eax, eax
cmp dword [esp + 0x98], ebx
mov dword [esp + 0x34], eax
je 0x104291
mov dword [esp + 0x1c], pe_nt_image_headers32
jmp 0x1042ab
xor edx, edx
cmp eax, ebx
mov eax, dword [esp + 0xac]
setne dl
and eax, 0xf
shl eax, 4
or edx, eax
mov dword [esp + 0x1c], edx
mov ecx, dword [0x4e73e0]
mov eax, dword [ecx + 0x2484]
test al, 0x20
mov dword [esp + 0x20], 0xfffe0000
je 0x104307
test ah, 2
je 0x104307
mov ecx, dword [ecx + 0x2520]
mov eax, dword [ecx]
call dword [eax + 0x124]
mov edx, dword [eax + 0x4c88]
call fcn.000fae10
test eax, eax
jne 0x104307
mov eax, dword [ebp + 0x410]
sub eax, 1
je 0x1042ff
sub eax, 1
jne 0x104307
mov dword [esp + 0x20], 0xfffe0002
jmp 0x104307
mov dword [esp + 0x20], 0xfffe0001
mov eax, dword [esp + 0xa8]
mov edi, 1
xor ecx, ecx
cmp eax, edi
mov dword [esp + 0x30], edi
jbe 0x104330
cmp eax, 4
jne 0x104330
mov edi, 2
mov dword [esp + 0x30], edi
mov ecx, 1
mov edx, dword [esp + 0xa4]
mov eax, dword [edx + 8]
xor edx, edx
div edi
xor edx, edx
mov esi, eax
mov eax, dword [esp + 0xa4]
mov eax, dword [eax + 4]
div edi
mov edx, dword [esp + 0xa4]
and esi, 0x7fff
shl esi, 0x10
and eax, 0x7fff
or esi, eax
mov eax, dword [edx + 0x60]
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x24], esi
je 0x104377
mov eax, dword [eax + 8]
jmp 0x10437a
or eax, 0xffffffff
mov edx, dword [esp + 0xa4]
movsx edx, word [edx + 0x48]
mov esi, edx
shl esi, 4
sub esi, edx
mov esi, dword [esi*4 + 0x401318]
and eax, 0x7f
and esi, 0xff
shl eax, 8
or esi, eax
mov eax, dword [esp + 0x94]
shl esi, 8
neg ecx
sbb ecx, ecx
and ecx, 2
or esi, ecx
test byte [eax + 0x1026], 3
mov dword [esp + 0x28], esi
je 0x1043d7
cmp edx, 7
je 0x1043d0
cmp edx, 9
je 0x1043d0
cmp edx, 0x1f
jne 0x1043d7
or esi, 4
mov dword [esp + 0x28], esi
lea eax, [ebp + 0x430]
mov ecx, 4
mov edi, eax
lea esi, [esp + 0x1c]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
mov dword [esp + 0x38], ebx
je 0x104882
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [0x4e73e0]
mov dword [eax + 0xc], edx
mov eax, dword [ecx + 0x60c0]
cmp eax, 1
mov dword [esp + 0x10], eax
jbe 0x1044e8
test byte [ecx + 0x2485], 2
je 0x1044df
xor esi, esi
test eax, eax
jbe 0x1044bc
mov edi, ecx
lea ebx, [ebp + 0x2c0]
add edi, 0x60c4
jmp 0x104450
mov ecx, esi
mov eax, 1
shl eax, cl
mov ecx, 1
mov dword [ebp + 0x18], eax
mov eax, ebp
call fcn.00105660
mov ecx, dword [edi]
mov edx, 1
shl edx, cl
add eax, 4
mov ecx, 2
or edx, 0x60000000
mov dword [eax - 4], edx
mov dword [ebp + 0xac], eax
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, ebp
call fcn.00105660
mov ecx, dword [esp + 0x18]
mov dword [eax], 0x400a4
add eax, 4
mov dword [eax], ecx
add eax, 4
add esi, 1
add edi, 4
add ebx, 0x68
cmp esi, dword [esp + 0x10]
mov dword [ebp + 0xac], eax
jb 0x104450
mov ecx, 1
mov eax, ebp
mov dword [ebp + 0x18], 0
call fcn.00105660
mov dword [eax], 0x60000fff
mov dword [esp + 0x38], 1
jmp 0x104505
xor edi, edi
mov esi, ebp
call fcn.001055f0
mov esi, dword [ebp + 0x2c0]
mov eax, ebp
mov ecx, 2
call fcn.00105660
mov dword [eax], 0x400a4
add eax, 4
mov dword [eax], esi
mov edx, dword [ebp + 0xbc]
add eax, 4
mov dword [ebp + 0xac], eax
mov eax, dword [ebp + 0xa4]
lea ecx, [eax + edx*4]
mov edx, dword [ebp + 0xac]
add edx, 8
cmp edx, ecx
jb 0x104539
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x104539
xor eax, eax
jmp 0x104550
mov edi, dword [ebp + 0xac]
lea eax, [edi + 8]
push eax
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov dword [eax], 0x400e0
mov dword [eax + 4], 0x60000000
mov ecx, dword [ebp + 0xbc]
mov edx, dword [ebp + 0xa4]
add eax, 8
mov dword [ebp + 0xac], eax
lea ecx, [edx + ecx*4]
add eax, 8
cmp eax, ecx
jb 0x10458b
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x10458b
xor eax, eax
jmp 0x1045a2
mov edi, dword [ebp + 0xac]
lea edx, [edi + 8]
push edx
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov dword [eax], 0x400e4
mov dword [eax + 4], 0
add eax, 8
mov dword [ebp + 0xac], eax
mov eax, dword [esp + 0xa4]
cmp word [eax + 0x48], 0x27
mov ecx, 2
mov eax, ebp
jne 0x104607
call fcn.00105660
mov dword [eax], 0x40110
add eax, 4
mov dword [eax], 1
add eax, 4
mov dword [ebp + 0xac], eax
mov ecx, 2
mov eax, ebp
call fcn.00105660
mov dword [eax], 0x40114
add eax, 4
mov dword [eax], 0x6400
jmp 0x10463f
call fcn.00105660
mov dword [eax], 0x40110
add eax, 4
mov dword [eax], 0
add eax, 4
mov dword [ebp + 0xac], eax
mov ecx, 2
mov eax, ebp
call fcn.00105660
mov dword [eax], 0x40114
add eax, 4
mov dword [eax], 0
mov ecx, dword [ebp + 0xbc]
mov edx, dword [ebp + 0xa4]
mov ebx, dword [ebp + 0x254]
add eax, 4
mov dword [ebp + 0xac], eax
lea eax, [edx + ecx*4]
mov ecx, dword [ebp + 0xac]
add ecx, 8
cmp ecx, eax
jb 0x104679
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x104679
xor eax, eax
jmp 0x104690
mov edi, dword [ebp + 0xac]
lea edx, [edi + 8]
push edx
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov ecx, dword [esp + 0x98]
mov dword [eax], 0x40094
mov dword [eax + 4], ebx
mov edx, dword [ebp + 0xbc]
mov ebx, dword [esp + 0x1c]
add eax, 8
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0xa4]
mov dword [ebp + 0xac], eax
lea edx, [ecx + edx*4]
add eax, 8
and bh, 0xfc
cmp eax, edx
jb 0x1046d9
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x1046d9
xor eax, eax
jmp 0x1046f0
mov edi, dword [ebp + 0xac]
lea eax, [edi + 8]
push eax
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov dword [eax], 0x40084
mov dword [eax + 4], ebx
mov ecx, dword [ebp + 0xbc]
mov edx, dword [ebp + 0xa4]
add eax, 8
mov dword [ebp + 0xac], eax
lea ecx, [edx + ecx*4]
add eax, 8
cmp eax, ecx
jb 0x104727
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x104727
xor eax, eax
jmp 0x10473e
mov edi, dword [ebp + 0xac]
lea edx, [edi + 8]
push edx
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov ecx, dword [esp + 0x20]
mov dword [eax], 0x40100
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0xbc]
mov ecx, dword [ebp + 0xa4]
add eax, 8
mov dword [ebp + 0xac], eax
lea edx, [ecx + edx*4]
add eax, 8
cmp eax, edx
jb 0x104779
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x104779
xor eax, eax
jmp 0x104790
mov edi, dword [ebp + 0xac]
lea eax, [edi + 8]
push eax
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov ecx, dword [esp + 0x24]
mov dword [eax], 0x40808
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0xbc]
mov ecx, dword [ebp + 0xa4]
add eax, 8
mov dword [ebp + 0xac], eax
lea edx, [ecx + edx*4]
add eax, 8
cmp eax, edx
jb 0x1047cb
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x1047cb
xor eax, eax
jmp 0x1047e2
mov edi, dword [ebp + 0xac]
lea eax, [edi + 8]
push eax
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov ecx, dword [esp + 0x28]
mov esi, dword [0x4e73e0]
mov dword [eax], 0x40810
mov dword [eax + 4], ecx
add eax, 8
mov dword [ebp + 0xac], eax
mov eax, dword [esi + 0x2484]
test al, 0x20
je 0x10483d
cmp dword [esp + 0xb0], 0
je 0x10483d
test eax, 0x200000
je 0x10483d
mov ecx, 2
mov eax, ebp
call fcn.00105660
mov dword [eax], 0x40104
add eax, 4
mov dword [eax], 0x80001001
add eax, 4
mov dword [ebp + 0xac], eax
cmp dword [ebp + 0x30], 1
jne 0x104857
mov edx, dword [ebp + 0x240]
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov edx, dword [ebp + 0xb0]
cmp edx, dword [ebp + 0xac]
je 0x104882
test byte [esi + 0x23a4], 0x40
je 0x104873
sfence
jmp 0x10487b
mov edx, 0x3d0
xor eax, eax
out dx, al
mov ecx, ebp
call fcn.001056b0
mov edi, dword [0x4e73e0]
mov eax, dword [edi + 0x2484]
test al, 0x20
je 0x104902
test ah, 2
je 0x104902
mov ecx, dword [edi + 0x2520]
mov eax, dword [ecx]
call dword [eax + 0x124]
mov edx, dword [eax + 0x4c88]
call fcn.000fae10
test eax, eax
jne 0x1048fc
cmp dword [ebp + 0x410], 1
jne 0x1048fc
cmp dword [esp + 0xb0], eax
mov edi, dword [0x4e73e0]
je 0x10495d
test byte [edi + 0x2486], 0x20
je 0x10495d
mov esi, ebp
call fcn.00105630
push 0xfffe0001
mov eax, pe_nt_image_headers32
mov edi, ebp
call fcn.001055c0
mov ecx, ebp
call fcn.001027e0
mov edi, dword [0x4e73e0]
mov eax, dword [edi + 0x2484]
test al, 0x20
je 0x104b15
test ah, 2
je 0x104936
mov ecx, dword [edi + 0x2520]
mov edx, dword [ecx]
call dword [edx + 0x124]
mov edx, dword [eax + 0x4c88]
call fcn.000fae10
test eax, eax
je 0x104aa4
mov eax, dword [esp + 0xa4]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov esi, ecx
or esi, edx
je 0x104a72
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
jmp 0x104a82
cmp dword [esp + 0x38], 0
jne 0x10496d
test byte [edi + 0x2388], 1
jne 0x104902
mov ecx, dword [esp + 0xa4]
mov eax, dword [ecx + 8]
xor edx, edx
div dword [esp + 0x30]
cmp dword [esp + 0x14], 0
mov dword [esp + 0x3c], 0
jne 0x104a2c
test byte [edi + 0x2388], 1
jne 0x104a2c
mov esi, dword [edi + 0x60c0]
xor ecx, ecx
add esi, 0xffffffff
je 0x104a22
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x1049bc
fadd dword [0x41bc68]
lea edx, [edi + 0x6714]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or ah, 0xc
fld st(0)
fmul dword [edx]
add ecx, 1
fld dword [0x41bc8c]
add edx, 4
fadd st(1)
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov dword [esp + ecx*4 + 0x3c], eax
fldcw word [esp + 0x10]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or ah, 0xc
cmp ecx, esi
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov dword [esp + ecx*4 + 0x18], eax
fldcw word [esp + 0x10]
jb 0x1049c2
fstp st(0)
mov dword [esp + ecx*4 + 0x1c], 0x7fff
jmp 0x104a3e
shr eax, 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x7fff
mov edx, dword [edi + 0x60c0]
lea ecx, [edx - 1]
xor eax, eax
test ecx, ecx
jbe 0x104a5c
lea ecx, [ecx]
add dword [esp + eax*4 + 0x40], 0xfffffffa
add eax, 1
cmp eax, ecx
jb 0x104a50
lea ecx, [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0x24]
mov ecx, ebp
call fcn.001038b0
jmp 0x104902
mov ecx, dword [eax]
mov edx, dword [ecx + 0x68]
mov eax, dword [ecx + 0x6c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x98]
mov ebx, dword [esp + 0xb0]
mov edi, dword [ebp + 0x410]
push ecx
push edx
call fcn.000e4a30
mov edx, dword [0x4e73e0]
test byte [edx + 0x2485], 2
je 0x104b0b
mov eax, dword [ebp + 0x410]
sub eax, 0
je 0x104b01
sub eax, 1
je 0x104b01
sub eax, 1
jne 0x104b15
mov ecx, dword [edx + 0x6708]
mov esi, dword [edx + 0x6104]
add ecx, ecx
add ecx, ecx
and esi, 0xffff
shr esi, cl
lea eax, [edx + 8]
and esi, 0xf
mov ecx, dword [esi*4 + 0x40dbc0]
call fcn.000b6350
mov eax, dword [0x4e73e0]
add eax, 8
call fcn.000b6430
jmp 0x104b15
lea eax, [edx + 8]
call fcn.000b6430
jmp 0x104b15
lea eax, [edx + 8]
xor ecx, ecx
call fcn.000b6350
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x20c]
mov esi, dword [0x4e73e0]
mov edi, dword [esi + 0x94]
shl ebx, 4
xor eax, eax
mov edx, ebx
add edx, dword [ebp + 0x208]
mov dword [edi], 0x10db00
mov edi, dword [esi + 0x94]
adc ecx, eax
lea eax, [esi + 8]
and ecx, 0xff
mov dword [edi + 4], ecx
mov ecx, dword [eax + 0x8c]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0x8c]
mov dword [edx + 0xc], 0xd3d
mov ecx, dword [eax + 0x8c]
mov dword [ecx + 0x10], 0x1000f010
add dword [eax + 0x8c], 0x14
mov ecx, dword [eax + 0x8c]
cmp ecx, dword [eax + 0xa4]
jb 0x104b95
call fcn.000b5d70
mov esi, dword [0x4e73e0]
test byte [esi + 0xc0], 8
lea eax, [esi + 8]
jne 0x104bca
mov edx, dword [eax + 0x90]
mov ecx, dword [eax + 0x8c]
cmp edx, ecx
je 0x104bca
sub ecx, edx
cmp ecx, 0x400
sbb edx, edx
add edx, 1
push edx
call fcn.000b5bd0
mov esi, dword [0x4e73e0]
mov eax, dword [esi + 0x2484]
test al, 0x20
je 0x104c79
test ah, 2
je 0x104c48
mov eax, dword [ebp + 0x410]
test eax, eax
jl 0x104c79
cmp eax, 1
jle 0x104c2d
cmp eax, 2
jne 0x104c79
mov eax, dword [0x4e73e0]
mov ecx, dword [eax + 0x6708]
mov eax, dword [eax + 0x6104]
add ecx, ecx
and eax, 0xffff
add ecx, ecx
shr eax, cl
mov esi, ebp
and eax, 0xf
mov edi, dword [eax*4 + 0x40dbc0]
call fcn.001055f0
call fcn.00105630
jmp 0x104c79
mov ecx, 1
mov eax, ebp
mov dword [ebp + 0x18], 0
call fcn.00105660
mov dword [eax], 0x60000fff
jmp 0x104c70
mov ecx, 1
mov eax, ebp
mov dword [ebp + 0x18], 1
call fcn.00105660
mov ecx, dword [esi + 0x60c4]
mov edx, 1
shl edx, cl
or edx, 0x60000000
mov dword [eax], edx
add eax, 4
mov dword [ebp + 0xac], eax
mov eax, dword [ebp + 0xbc]
mov ecx, dword [ebp + 0xa4]
lea edx, [ecx + eax*4]
mov eax, dword [ebp + 0xac]
add eax, 8
cmp eax, edx
jb 0x104ca4
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x104ca4
xor eax, eax
jmp 0x104cbb
mov edi, dword [ebp + 0xac]
lea ecx, [edi + 8]
push ecx
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov dword [eax], 0x40088
mov dword [eax + 4], ebx
mov edx, dword [ebp + 0xbc]
mov ecx, dword [ebp + 0xa4]
add eax, 8
mov dword [ebp + 0xac], eax
lea edx, [ecx + edx*4]
add eax, 8
cmp eax, edx
jb 0x104cf2
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x104cf2
xor eax, eax
jmp 0x104d09
mov edi, dword [ebp + 0xac]
lea eax, [edi + 8]
push eax
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov dword [eax], 0x4008c
mov dword [eax + 4], 0xd3d
mov ecx, dword [ebp + 0xbc]
mov edx, dword [ebp + 0xa4]
add eax, 8
mov dword [ebp + 0xac], eax
lea ecx, [edx + ecx*4]
add eax, 8
cmp eax, ecx
jb 0x104d44
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x104d44
xor eax, eax
jmp 0x104d5b
mov edi, dword [ebp + 0xac]
lea edx, [edi + 8]
push edx
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov ebx, dword [esp + 0x2c]
mov dword [eax], 0x40090
mov dword [eax + 4], 0x2d3d
mov ecx, dword [ebp + 0xbc]
mov edx, dword [ebp + 0xa4]
add eax, 8
and ebx, 0x3ff
add ebx, ebx
mov dword [ebp + 0xac], eax
lea ecx, [edx + ecx*4]
add eax, 8
add ebx, ebx
cmp eax, ecx
jb 0x104da4
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x104da4
xor eax, eax
jmp 0x104dbb
mov edi, dword [ebp + 0xac]
lea edx, [edi + 8]
push edx
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov edi, dword [esp + 0xa4]
mov dword [eax], 0x400a0
lea esi, [eax + 8]
mov dword [eax + 4], ebx
mov dword [ebp + 0xac], esi
mov eax, dword [edi + 0x50]
shr eax, 0x1b
and eax, 1
je 0x104dea
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
and edx, 0xf
jmp 0x104df1
mov ecx, dword [edi]
shr ecx, 8
xor edx, edx
and ecx, 0x3ff
shl ecx, 8
neg eax
sbb eax, eax
and eax, 0xfff00000
add eax, 0x100000
or ecx, eax
mov eax, dword [ebp + 0xbc]
or ecx, edx
mov ebx, ecx
mov ecx, dword [ebp + 0xa4]
lea edx, [ecx + eax*4]
add esi, 8
cmp esi, edx
jb 0x104e33
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x104e33
xor eax, eax
jmp 0x104e51
mov edi, dword [ebp + 0xac]
lea eax, [edi + 8]
push eax
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov edi, dword [esp + 0xa4]
mov ecx, dword [0x4e73e0]
mov dword [eax], 0x4080c
mov dword [eax + 4], ebx
add eax, 8
mov dword [ebp + 0xac], eax
mov eax, dword [ecx + 0x2484]
test al, 0x20
je 0x104f92
test ah, 2
je 0x104f92
mov ecx, dword [ecx + 0x2520]
mov edx, dword [ecx]
call dword [edx + 0x124]
mov edx, dword [eax + 0x4c88]
call fcn.000fae10
test eax, eax
jne 0x104f92
cmp dword [ebp + 0x410], 2
jne 0x104f92
mov ebx, dword [0x4e73e0]
cmp dword [ebx + 0x60c0], 2
jne 0x104ff9
mov eax, dword [ebx + 0x6104]
mov ecx, 1
sub ecx, dword [ebx + 0x6708]
and eax, 0xffff
add ecx, ecx
add ecx, ecx
shr eax, cl
mov esi, ebp
and eax, 0xf
mov edi, dword [eax*4 + 0x40dbc0]
call fcn.001055f0
mov ecx, 2
mov eax, ebp
call fcn.00105660
mov dword [eax], 0x400c0
mov dword [eax + 4], 0
add eax, 4
add eax, 4
mov dword [ebp + 0xac], eax
mov ecx, dword [ebx + 0x6708]
mov edx, dword [ebx + 0x6104]
add ecx, ecx
and edx, 0xffff
add ecx, ecx
shr edx, cl
and edx, 0xf
mov edi, dword [edx*4 + 0x40dbc0]
call fcn.001055f0
mov eax, dword [esp + 0xa4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax]
test eax, eax
je 0x104f52
mov esi, dword [eax + 0xc0]
jmp 0x104f54
xor esi, esi
mov ecx, 2
mov eax, ebp
call fcn.00105660
mov dword [eax], 0x400c0
add eax, 4
mov dword [eax], esi
add eax, 4
mov dword [ebp + 0xac], eax
mov ecx, 1
mov eax, ebp
mov dword [ebp + 0x18], 0
call fcn.00105660
mov dword [eax], 0x60000fff
add eax, 4
jmp 0x104ff3
mov edi, dword [edi + 0x60]
mov eax, dword [edi]
test eax, eax
je 0x104fa3
mov ebx, dword [eax + 0xc0]
jmp 0x104fa5
xor ebx, ebx
mov ecx, dword [ebp + 0xbc]
mov edx, dword [ebp + 0xa4]
lea eax, [edx + ecx*4]
mov ecx, dword [ebp + 0xac]
add ecx, 8
cmp ecx, eax
jb 0x104fd0
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x104fd0
xor eax, eax
jmp 0x104fe7
mov edi, dword [ebp + 0xac]
lea edx, [edi + 8]
push edx
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov dword [eax], 0x400c0
mov dword [eax + 4], ebx
add eax, 8
mov dword [ebp + 0xac], eax
cmp dword [0x5272ec], 0
je 0x1050e3
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x60]
mov edx, dword [ecx]
mov ebx, dword [edx + 0x70]
mov eax, dword [edx + 0x74]
mov ecx, dword [ebp + 0xbc]
mov edx, dword [ebp + 0xa4]
mov dword [esp + 0x20], eax
lea eax, [edx + ecx*4]
mov ecx, dword [ebp + 0xac]
add ecx, 8
cmp ecx, eax
jb 0x105047
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x105047
xor eax, eax
jmp 0x10505e
mov edi, dword [ebp + 0xac]
lea edx, [edi + 8]
push edx
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov dword [eax], 0x40800
shr ebx, 8
mov dword [eax + 4], ebx
add eax, 8
cmp dword [esp + 0x34], 0
mov dword [ebp + 0xac], eax
je 0x105091
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx + 0x68]
mov ecx, dword [edx + 0x60]
mov edx, dword [ecx]
mov ebx, dword [edx + 0x70]
shr ebx, 8
jmp 0x105093
xor ebx, ebx
mov ecx, dword [ebp + 0xbc]
mov edx, dword [ebp + 0xa4]
lea ecx, [edx + ecx*4]
add eax, 8
cmp eax, ecx
jb 0x1050c1
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x1050c1
xor eax, eax
mov dword [eax], 0x40804
mov dword [eax + 4], ebx
jmp 0x105132
mov edi, dword [ebp + 0xac]
lea edx, [edi + 8]
push edx
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov dword [eax], 0x40804
mov dword [eax + 4], ebx
jmp 0x105132
mov eax, dword [ebp + 0xbc]
mov ecx, dword [ebp + 0xa4]
lea edx, [ecx + eax*4]
mov eax, dword [ebp + 0xac]
add eax, 8
cmp eax, edx
jb 0x10510e
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x10510e
xor eax, eax
jmp 0x105125
mov edi, dword [ebp + 0xac]
lea ecx, [edi + 8]
push ecx
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov dword [eax], 0x40800
mov dword [eax + 4], 0
mov edx, dword [ebp + 0xbc]
add eax, 8
mov dword [ebp + 0xac], eax
mov eax, dword [ebp + 0xa4]
lea ecx, [eax + edx*4]
mov edx, dword [ebp + 0xac]
add edx, 8
cmp edx, ecx
jb 0x105166
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x105166
xor eax, eax
jmp 0x10517d
mov edi, dword [ebp + 0xac]
lea eax, [edi + 8]
push eax
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov dword [eax], 0x40080
mov dword [eax + 4], 0
add eax, 8
cmp dword [esp + 0x18], 0
mov dword [ebp + 0xac], eax
je 0x1052ea
mov ecx, dword [ebp + 0xbc]
mov edx, dword [ebp + 0xa4]
lea ecx, [edx + ecx*4]
add eax, 8
cmp eax, ecx
jb 0x1051c3
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x1051c3
xor eax, eax
jmp 0x1051da
mov edi, dword [ebp + 0xac]
lea edx, [edi + 8]
push edx
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov dword [eax], 0x40094
mov dword [eax + 4], 0
mov ecx, dword [ebp + 0xbc]
mov edx, dword [ebp + 0xa4]
mov ebx, dword [ebp + 0x430]
add eax, 8
mov dword [ebp + 0xac], eax
lea ecx, [edx + ecx*4]
add eax, 8
cmp eax, ecx
jb 0x10521b
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x10521b
xor eax, eax
jmp 0x105232
mov edi, dword [ebp + 0xac]
lea edx, [edi + 8]
push edx
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov dword [eax], 0x40084
mov dword [eax + 4], ebx
mov ecx, dword [ebp + 0xbc]
mov edx, dword [ebp + 0xa4]
add eax, 8
mov dword [ebp + 0xac], eax
lea ecx, [edx + ecx*4]
add eax, 8
cmp eax, ecx
jb 0x105269
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x105269
xor eax, eax
jmp 0x105280
mov edi, dword [ebp + 0xac]
lea edx, [edi + 8]
push edx
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov dword [eax], 0x40080
mov dword [eax + 4], 0
mov ecx, dword [ebp + 0xbc]
mov edx, dword [ebp + 0xa4]
mov ebx, dword [ebp + 0x254]
add eax, 8
mov dword [ebp + 0xac], eax
lea ecx, [edx + ecx*4]
add eax, 8
cmp eax, ecx
jb 0x1052c1
mov esi, ebp
call fcn.00102820
test eax, eax
je 0x1052c1
xor eax, eax
jmp 0x1052d8
mov edi, dword [ebp + 0xac]
lea edx, [edi + 8]
push edx
mov eax, ebp
call fcn.00102730
mov eax, dword [ebp + 0xac]
mov dword [eax], 0x40094
mov dword [eax + 4], ebx
add eax, 8
mov dword [ebp + 0xac], eax
mov edi, 1
cmp dword [ebp + 0x30], edi
jne 0x105308
mov eax, dword [ebp + 0x240]
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov eax, dword [ebp + 0xb0]
cmp eax, dword [ebp + 0xac]
mov esi, dword [0x4e73e0]
je 0x105374
test byte [esi + 0x23a4], 0x40
je 0x10532a
sfence
jmp 0x105332
mov edx, 0x3d0
xor eax, eax
out dx, al
mov eax, dword [ebp + 0xa8]
sub eax, dword [ebp + 0xa4]
mov ecx, dword [ebp + 0x14]
add eax, dword [ebp + 0xac]
sub ecx, 2
je 0x10535e
sub ecx, edi
je 0x105359
sub ecx, edi
jne 0x105363
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
mov edx, dword [ebp + 0x24]
mov dword [edx], eax
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
mov eax, dword [ebp + 0xac]
mov dword [ebp + 0xb0], eax
mov eax, dword [esi + 0x2484]
test al, 0x20
je 0x1053ea
test ah, 2
je 0x1053a0
mov ecx, dword [esi + 0x2520]
mov edx, dword [ecx]
call dword [edx + 0x124]
mov edx, dword [eax + 0x4c88]
call fcn.000fae10
test eax, eax
je 0x1053ab
mov eax, dword [ebp + 0x410]
call fcn.000e4bc0
mov esi, dword [0x4e73e0]
mov ecx, dword [esi + 0x94]
lea eax, [esi + 8]
mov dword [eax + 0x154], 0xffffffff
mov dword [ecx], 0x1fff0
add dword [eax + 0x8c], 4
mov ecx, dword [eax + 0x8c]
cmp ecx, dword [eax + 0xa4]
jb 0x1053ea
call fcn.000b5d70
mov esi, dword [0x4e73e0]
test byte [esi + 0xc0], 8
lea eax, [esi + 8]
jne 0x10541f
mov edx, dword [eax + 0x90]
mov ecx, dword [eax + 0x8c]
cmp edx, ecx
je 0x10541f
sub ecx, edx
cmp ecx, 0x400
sbb edx, edx
add edx, 1
push edx
call fcn.000b5bd0
mov esi, dword [0x4e73e0]
lea eax, [esi + 0x3d80]
call fcn.0011aef0
mov ecx, dword [0x4e73e0]
mov dword [ecx + 0x3b94], edi
test byte [ecx + 0x2484], 0x20
je 0x105478
mov edx, dword [ecx + 0x94]
lea eax, [ecx + 8]
mov dword [eax + 0x154], 0xffffffff
mov dword [edx], 0x1fff0
add dword [eax + 0x8c], 4
mov edx, dword [eax + 0x8c]
cmp edx, dword [eax + 0xa4]
jb 0x105478
call fcn.000b5d70
mov ecx, dword [0x4e73e0]
mov esi, dword [esp + 0x9c]
test esi, esi
je 0x1054aa
mov eax, dword [esi + 0x60]
mov edi, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov edx, edi
or edx, ebx
jne 0x10549a
mov eax, dword [eax]
mov edi, dword [eax + 0x68]
mov ebx, dword [eax + 0x6c]
mov eax, dword [esi + 0x5c]
xor edx, edx
add eax, edi
adc edx, ebx
mov edi, 1
jmp 0x1054ae
xor eax, eax
xor edx, edx
test esi, esi
mov dword [ecx + 0x978], eax
mov dword [ecx + 0x97c], edx
je 0x1054cf
mov esi, dword [esi + 0x60]
mov eax, dword [esi]
test eax, eax
je 0x1054cf
mov eax, dword [eax + 0xc0]
jmp 0x1054d1
xor eax, eax
mov edx, dword [esp + 0xa4]
mov dword [ecx + 0x9b8], eax
mov eax, dword [edx + 0x60]
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
mov ebx, edx
or ebx, esi
jne 0x1054f5
mov eax, dword [eax]
mov edx, dword [eax + 0x68]
mov esi, dword [eax + 0x6c]
mov eax, dword [esp + 0xa4]
mov eax, dword [eax + 0x5c]
xor ebx, ebx
add eax, edx
mov edx, dword [esp + 0xa4]
adc ebx, esi
mov dword [ecx + 0x9a8], eax
mov dword [ecx + 0x9ac], ebx
mov eax, dword [edx + 0x60]
mov eax, dword [eax]
test eax, eax
je 0x105529
mov eax, dword [eax + 0xc0]
jmp 0x10552b
xor eax, eax
mov dword [ecx + 0x9c8], eax
mov dword [ecx + 0x9c0], edi
mov byte [ebp + 0x414], 1
mov byte [ebp + 0x415], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0x24