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

Disassembly:
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x15080
cmp byte [eax + 0x11], 0
je 0x175a3
mov byte [ebp - 2], 1
jmp 0x17686
push 0x400
push esi
call fcn.000171e8
push 0
call fcn.00010ac7
jmp 0x17697
test al, al
js 0x179e7
jmp 0x179fe
test ah, 1
jne 0x179f4
jmp 0x179fe
push dword [ebp - 0xc]
call fcn.00013e08
jmp 0x17686
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 0x24], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x78]
mov ecx, 0x40000
test ecx, eax
push edi
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
jne 0x17e0c
test byte [esi + 0x7c], 2
jne 0x17e0c
or eax, ecx
test eax, 0x10000000
mov dword [esi + 0x78], eax
jne 0x17686
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [0x4fb50]
ja 0x1506c
mov eax, dword [esi + 0x30]
sub eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x44]
sub edi, eax
cmp ecx, edx
mov dword [ebp - 0x28], edi
jae 0x17908
sub ecx, eax
mov ax, word [esi + 0x126]
test al, 1
mov edx, ecx
mov dword [ebp - 0x20], edx
jne 0x3b905
mov eax, dword [esi + 0x78]
shr eax, 0x16
and eax, 1
cmp edx, eax
jle 0x1a6a6
cmp edx, edi
mov dword [ebp - 8], edx
jb 0x175f0
mov dword [ebp - 8], edi
movzx ecx, word [esi + 0x20]
mov eax, ecx
imul eax, dword [0x4fb50]
cmp dword [ebp - 8], eax
jae 0x3b926
cmp edx, edi
mov eax, edx
jb 0x1760e
mov eax, edi
cmp eax, ecx
jae 0x17fa2
cmp edx, edi
jb 0x17fef
mov eax, edi
xor ebx, ebx
mov bl, byte [esi + 0x126]
shr bl, 4
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], ebx
and dword [ebp + 8], 2
jne 0x3b92e
cmp eax, ecx
je 0x17fa9
xor ebx, ebx
cmp eax, ebx
jne 0x176c3
cmp edx, ebx
je 0x17675
mov edx, dword [esi + 0x78]
test edx, 0x10000
jne 0x1d8a7
test edx, 0x400000
jne 0x17961
mov edx, dword [esi + 0x40]
shr edx, 1
cmp eax, edx
jae 0x17961
cmp dword [esi + 0x38], ebx
je 0x3b961
cmp eax, ebx
jne 0x182b8
and dword [esi + 0x78], 0xff3bfbff
cmp byte [ebp - 2], 0
jne 0x15089
mov eax, dword [esi + 0x24]
mov dword [esi + 0x138], eax
push dword [ebp + 0xc]
push esi
call fcn.00013d9a
pop edi
pop esi
pop ebx
leave
ret 8
cmp eax, edi
je 0x17961
jmp 0x17649
mov ecx, edx
jmp 0x175bf
cmp word [ebp + 8], bx
jne 0x3b944
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x1c], ecx
call fcn.00013d61
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x3bbcb
mov eax, dword [ebp - 0x10]
add eax, dword [0x59ce4]
test byte [esi + 0x126], 0x20
mov ebx, dword [esi + 0x50]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], eax
jne 0x3b94c
lea edi, [eax + 0x14]
push eax
add edi, 3
push esi
and edi, 0xfffffffc
call fcn.000174e3
xor eax, eax
mov word [edi + 0x14], ax
mov word [edi + 0x16], ax
mov dword [edi + 0x10], eax
mov dword [edi + 8], eax
cmp dword [0x50534], eax
jne 0x179fe
mov ecx, dword [esi + 0xfc]
test ecx, ecx
je 0x179fe
mov eax, dword [ecx + 0x24]
test al, 0x10
je 0x179fe
test byte [esi + 0x126], 0x20
jne 0x150a0
cmp dword [esi + 0xdc], 0
jne 0x150ad
cmp byte [ebp - 1], 0
je 0x17b48
xor al, al
test al, al
jne 0x180c1
xor eax, eax
cmp dword [ebp - 0x14], eax
je 0x1d890
mov dword [edi + 0xc], ebx
push dword [ebp - 0xc]
mov eax, dword [esi + 0x30]
push dword [ebp - 0x20]
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push dword [ebp - 0x28]
push eax
push edi
push esi
call fcn.0001782b
test al, al
je 0x3bb91
mov ebx, dword [ebp - 0x14]
and dword [esi + 0x78], 0xffbff5ff
push 1
add ebx, 0x14
push esi
mov dword [ebp - 0x14], ebx
call fcn.00013dfb
push 3
push esi
call fcn.00013dfb
test byte [esi + 0x7b], 2
mov byte [esi + 0x15e], 0
jne 0x2bcf2
push esi
mov byte [esi + 0x1f], 0
call fcn.00013e31
test byte [esi + 0x126], 0x20
mov eax, dword [esi + 0xfc]
jne 0x3b9a2
test eax, eax
je 0x2be66
test byte [eax + 0x24], 1
je 0x2be66
mov ah, bl
mov al, bh
movzx eax, ax
add eax, dword [esi + 0x4c]
mov ecx, eax
shr ecx, 0x10
mov edx, eax
shl edx, 0x10
or ecx, edx
add ecx, eax
mov eax, dword [ebp - 0x10]
shr ecx, 0x10
mov word [eax + 0x10], cx
or byte [esi + 0xe8], 2
mov dl, byte [ebp + 0xc]
lea ebx, [esi + 4]
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, dword [edi + 0xc]
xor ecx, ecx
test eax, eax
je 0x17ade
mov ecx, dword [eax + 0xc]
push ecx
push 6
push dword [esi + 0xfc]
lea eax, [esi + 0xdc]
push eax
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push edi
push dword [0x54398]
call dword [0x59ce8]
cmp eax, 0x2bf7
mov dword [ebp - 0x20], eax
mov dword [esi + 0x94], eax
jne 0x3ba41
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
cmp dword [esi + 0x178], 0
mov byte [ebp + 0xc], al
jne 0x17d41
movzx eax, word [esi + 0x8c]
push eax
push 0
push esi
call fcn.000169ec
jmp 0x17d41
mov edx, dword [ebp - 8]
cmp dword [ebp - 0x1c], edx
jae 0x179fe
test ebx, ebx
je 0x179fe
cmp dword [ebx + 0x2c], 0
jne 0x179fe
test byte [ebx + 0x1c], 1
jne 0x179fe
mov eax, dword [ecx + 0x2c]
cmp eax, edx
mov byte [ebp + 0xb], 1
jb 0x17fe7
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x1c]
xor edx, edx
div ebx
test edx, edx
je 0x17ba7
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x28]
je 0x17ba7
test byte [esi + 0x7a], 0x40
jne 0x17ba7
mov eax, dword [esi + 0x40]
shr eax, 1
cmp edx, eax
jae 0x17ba7
sub dword [ebp - 8], edx
mov eax, dword [ebp - 8]
xor edx, edx
lea eax, [ebx + eax - 1]
div ebx
cmp dword [ecx + 0x30], eax
ja 0x182f4
mov al, byte [ebp + 0xb]
cmp dword [ebp - 8], 0
mov ebx, dword [ebp - 0x2c]
jne 0x17a00
jmp 0x179fe
test byte [esi + 0x7b], 0x10
je 0x17591
jmp 0x17686
or eax, 0x800000
mov dword [esi + 0x78], eax
jmp 0x176a0
mov eax, ecx
jmp 0x17620
xor ebx, ebx
jmp 0x17961
mov dword [ebp - 8], eax
jmp 0x17b7f
mov eax, edx
jmp 0x17620
push dword [ebp - 0xc]
mov eax, dword [esi + 0x30]
push dword [ebp - 0x20]
mov dword [edi + 0xc], ebx
push dword [ebp - 0x10]
mov dword [ebp + 8], eax
push dword [ebp - 0x28]
lea eax, [ebp - 8]
push eax
push edi
push esi
call fcn.0001782b
test al, al
je 0x3bb91
mov eax, dword [esi + 0x4c]
mov ebx, dword [ebp - 8]
mov ecx, eax
shr ecx, 0x10
mov edx, eax
shl edx, 0x10
or ecx, edx
add ecx, eax
mov eax, dword [ebp - 0x10]
shr ecx, 0x10
mov word [eax + 0x10], cx
and dword [edi + 4], 0
mov dword [edi], ebx
mov dword [edi + 8], esi
inc dword [esi + 8]
test byte [esi + 0x126], 0x20
mov byte [esi + 0x15e], 0
jne 0x3b99a
add ebx, 0x14
push esi
call fcn.00013e31
mov dl, byte [ebp + 0xc]
lea ecx, [esi + 4]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push eax
push 6
push dword [esi + 0xfc]
lea eax, [esi + 0xdc]
push eax
push dword [esi + 0x10]
push dword [esi + 0xc]
push ebx
push dword [ebp - 0xc]
push edi
push dword [0x54398]
call dword [0x59d3c]
mov ebx, eax
cmp ebx, 0x2bf7
mov dword [esi + 0x94], ebx
je 0x1818d
mov eax, dword [ebp - 0x30]
push 0x2b1b
push dword [ebp - 0xc]
mov dword [edi + 4], eax
push edi
call fcn.00013e80
lea ecx, [esi + 4]
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
cmp ebx, 0x2b2a
mov byte [ebp + 0xc], al
jne 0x3bb47
mov eax, dword [ebp + 8]
sub eax, dword [esi + 0x2c]
js 0x181b5
mov eax, dword [ebp + 8]
sub eax, dword [esi + 0x30]
js 0x181be
mov byte [ebp - 1], 1
jmp 0x17d41
push dword [ebp + 8]
push esi
call fcn.00016eff
jmp 0x181b5
cmp dword [esi + 0x184], ebx
jne 0x17686
push 0x32
push 3
push esi
call fcn.000169ec
jmp 0x17686
xor al, al
jmp 0x17bbe
mov edx, eax
mov dword [ebp - 0x20], edx
jmp 0x175e6
test byte [esi + 0x7a], 1
je 0x150bb
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0xc], eax
mov dword [ecx], eax
jmp 0x17a16
cmp edi, ecx
jbe 0x17961
jmp 0x1765c
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x17a6c
push dword [eax + 0x2c]
push 6
push esi
call fcn.000169ec
jmp 0x17a6c
push dword [ebp - 0xc]
mov ah, bl
mov al, bh
movzx eax, ax
add eax, dword [esi + 0x4c]
push eax
call fcn.000167bd
mov ecx, dword [ebp - 0x10]
not eax
mov word [ecx + 0x10], ax
and byte [esi + 0xe8], 0xfd
jmp 0x17ac4
and ax, 0xfffe
mov word [esi + 0x126], ax
movzx eax, word [esi + 0x20]
cmp edx, eax
jge 0x175d5
mov edx, eax
mov dword [ebp - 0x20], edx
jmp 0x175d5
mov dword [ebp - 8], eax
jmp 0x17606
lea ebx, [eax + 0xc]
cmp ebx, ecx
jb 0x1763b
lea eax, [ecx - 0xc]
mov dword [ebp - 0x14], eax
jmp 0x17fa9
add ecx, 0xfffffff4
jmp 0x1796b
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0x20
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x20]
jmp 0x179a4
mov eax, dword [esi + 0x78]
mov ecx, 0x80000
test ecx, eax
jne 0x3bb2d
or eax, ecx
push esi
mov dword [esi + 0x78], eax
mov byte [esi + 0x1d], 0
call fcn.00017781
movzx eax, ax
push eax
push ebx
push esi
call fcn.000169ec
inc byte [esi + 0x92]
or dword [esi + 0x7c], 1
jmp 0x17686
add ebx, 0x20
jmp 0x1812a
test eax, eax
je 0x3b9df
mov eax, dword [eax + 0x24]
test al, 1
je 0x3b9df
test al, 0x40
je 0x3b9df
add ebx, 0xc
mov ah, bl
mov al, bh
movzx eax, ax
add eax, dword [esi + 0x4c]
mov ecx, eax
shr ecx, 0x10
mov edx, eax
shl edx, 0x10
or ecx, edx
add ecx, eax
mov eax, dword [ebp - 0x10]
shr ecx, 0x10
mov word [eax + 0x10], cx
or byte [esi + 0xe8], 2
jmp 0x3ba05
push dword [ebp - 0xc]
add ebx, 0xc
mov ah, bl
mov al, bh
movzx eax, ax
add eax, dword [esi + 0x4c]
push eax
call fcn.000167bd
mov ecx, dword [ebp - 0x10]
not eax
mov word [ecx + 0x10], ax
and byte [esi + 0xe8], 0xfd
mov dl, byte [ebp + 0xc]
lea ebx, [esi + 4]
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, dword [edi + 0xc]
xor ecx, ecx
test eax, eax
je 0x3ba1f
mov ecx, dword [eax + 0xc]
push ecx
push 6
push dword [esi + 0xfc]
lea eax, [esi + 0xdc]
push eax
push dword [esi + 0x10]
mov eax, dword [ebp - 0x14]
push dword [esi + 0xc]
add eax, 0xc
push eax
jmp 0x17af7
push 0
push dword [ebp - 0xc]
push edi
call fcn.00013e80
cmp dword [ebp - 0x20], 0
je 0x17b1b
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov byte [ebp + 0xc], al
mov eax, dword [ebp + 8]
sub eax, dword [esi + 0x2c]
js 0x3ba7a
mov eax, dword [ebp + 8]
sub eax, dword [esi + 0x30]
jns 0x3ba7a
push dword [ebp + 8]
push esi
call fcn.00016eff
cmp dword [esi + 0x178], 0
jne 0x3ba93
movzx eax, word [esi + 0x8c]
push eax
push 0
push esi
call fcn.000169ec
cmp dword [ebp - 0x20], 0x2b01
jne 0x17686
mov eax, dword [esi + 0xfc]
xor edi, edi
cmp eax, edi
je 0x3bac2
mov cx, word [eax + 0x48]
cmp cx, di
jne 0x3bab8
push eax
jmp 0x3bac3
movzx eax, cx
mov dword [ebp - 0x18], eax
xor eax, eax
jmp 0x3bad4
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x10]
push dword [esi + 0xc]
call dword [0x59d08]
cmp eax, edi
jne 0x17686
movzx eax, byte [esi + 0xe4]
lea ecx, [eax + 0x14]
cmp dword [ebp - 0x18], ecx
ja 0x3bb03
mov ax, word [esi + 0x22]
and byte [esi + 0xe7], 0xfd
cmp ax, 0x218
jbe 0x3bb1b
mov eax, 0x218
jmp 0x3bb1e
push 0xffffffffffffffec
pop ecx
sub ecx, eax
mov ax, word [esi + 0x22]
add dword [ebp - 0x18], ecx
cmp word [ebp - 0x18], ax
jae 0x3bb1b
movzx eax, word [ebp - 0x18]
jmp 0x3bb1e
movzx eax, ax
push esi
mov word [esi + 0x20], ax
call fcn.0001bbf9
jmp 0x17d41
cmp dword [esi + 0x178], ebx
jne 0x17686
movzx eax, word [esi + 0x8c]
push eax
push ebx
jmp 0x182c8
cmp ebx, 0x2b01
jne 0x3bb6c
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
add eax, ecx
mov ecx, eax
sub ecx, dword [esi + 0x2c]
js 0x3bb6c
mov ecx, eax
sub ecx, dword [esi + 0x30]
jns 0x3bb6c
push eax
push esi
call fcn.00016eff
cmp dword [esi + 0x178], 0
jne 0x3bb85
movzx eax, word [esi + 0x8c]
push eax
push 0
push esi
call fcn.000169ec
and dword [esi + 0x78], 0xff3bfbff
jmp 0x176a0
xor ebx, ebx
cmp dword [esi + 0x178], ebx
jne 0x3bbac
push esi
call fcn.00017781
movzx eax, ax
push eax
push ebx
push esi
call fcn.000169ec
push dword [ebp + 0xc]
and dword [esi + 0x78], 0xffbbfbff
push esi
call fcn.00013d9a
push ebx
push dword [ebp - 0xc]
push edi
call fcn.00013e80
jmp 0x176a9
cmp dword [esi + 0x178], ebx
jne 0x3bbe4
push esi
call fcn.00017781
movzx eax, ax
push eax
push ebx
push esi
call fcn.000169ec
and dword [esi + 0x78], 0xffbbfbff
jmp 0x176a0