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.00010abb
jmp 0x17697
test al, al
js 0x179e4
jmp 0x179fb
test ah, 1
jne 0x179f1
jmp 0x179fb
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 0x17e09
test byte [esi + 0x7c], 2
jne 0x17e09
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 [0x4fad0]
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 0x17905
sub ecx, eax
mov ax, word [esi + 0x126]
test al, 1
mov edx, ecx
mov dword [ebp - 0x20], edx
jne 0x3b885
mov eax, dword [esi + 0x78]
shr eax, 0x16
and eax, 1
cmp edx, eax
jle 0x1a6a3
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 [0x4fad0]
cmp dword [ebp - 8], eax
jae 0x3b8a6
cmp edx, edi
mov eax, edx
jb 0x1760e
mov eax, edi
cmp eax, ecx
jae 0x17f9f
cmp edx, edi
jb 0x17fec
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 0x3b8ae
cmp eax, ecx
je 0x17fa6
xor ebx, ebx
cmp eax, ebx
jne 0x176b0
cmp edx, ebx
je 0x17675
mov edx, dword [esi + 0x78]
test edx, 0x10000
jne 0x1e131
test edx, 0x400000
jne 0x1795e
mov edx, dword [esi + 0x40]
shr edx, 1
cmp eax, edx
jae 0x1795e
cmp dword [esi + 0x38], ebx
je 0x3b8e1
cmp eax, ebx
jne 0x182b5
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 0x1795e
jmp 0x17649
mov ecx, edx
jmp 0x175bf
cmp word [ebp + 8], bx
jne 0x3b8c4
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x1c], ecx
call fcn.00013d61
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x3bb4b
mov eax, dword [ebp - 0x10]
add eax, dword [0x59c64]
test byte [esi + 0x126], 0x20
mov ebx, dword [esi + 0x50]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], eax
jne 0x3b8cc
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 [0x504b4], eax
jne 0x179fb
mov ecx, dword [esi + 0xfc]
test ecx, ecx
je 0x179fb
mov eax, dword [ecx + 0x24]
test al, 0x10
je 0x179fb
test byte [esi + 0x126], 0x20
jne 0x150a0
cmp dword [esi + 0xdc], 0
jne 0x150ad
cmp byte [ebp - 1], 0
je 0x17b45
xor al, al
test al, al
jne 0x180be
xor eax, eax
cmp dword [ebp - 0x14], eax
je 0x1e11a
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.00017828
test al, al
je 0x3bb11
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 0x2bd1e
push esi
mov byte [esi + 0x1f], 0
call fcn.00013e31
test byte [esi + 0x126], 0x20
mov eax, dword [esi + 0xfc]
jne 0x3b922
test eax, eax
je 0x2be92
test byte [eax + 0x24], 1
je 0x2be92
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 0x17adb
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 [0x54318]
call dword [0x59c68]
cmp eax, 0x2bf7
mov dword [ebp - 0x20], eax
mov dword [esi + 0x94], eax
jne 0x3b9c1
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
cmp dword [esi + 0x178], 0
mov byte [ebp + 0xc], al
jne 0x17d3e
movzx eax, word [esi + 0x8c]
push eax
push 0
push esi
call fcn.000169ec
jmp 0x17d3e
mov edx, dword [ebp - 8]
cmp dword [ebp - 0x1c], edx
jae 0x179fb
test ebx, ebx
je 0x179fb
cmp dword [ebx + 0x2c], 0
jne 0x179fb
test byte [ebx + 0x1c], 1
jne 0x179fb
mov eax, dword [ecx + 0x2c]
cmp eax, edx
mov byte [ebp + 0xb], 1
jb 0x17fe4
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x1c]
xor edx, edx
div ebx
test edx, edx
je 0x17ba4
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x28]
je 0x17ba4
test byte [esi + 0x7a], 0x40
jne 0x17ba4
mov eax, dword [esi + 0x40]
shr eax, 1
cmp edx, eax
jae 0x17ba4
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 0x182f1
mov al, byte [ebp + 0xb]
cmp dword [ebp - 8], 0
mov ebx, dword [ebp - 0x2c]
jne 0x179fd
jmp 0x179fb
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 0x1795e
mov dword [ebp - 8], eax
jmp 0x17b7c
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.00017828
test al, al
je 0x3bb11
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 0x3b91a
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 [0x54318]
call dword [0x59cbc]
mov ebx, eax
cmp ebx, 0x2bf7
mov dword [esi + 0x94], ebx
je 0x1818a
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 0x3bac7
mov eax, dword [ebp + 8]
sub eax, dword [esi + 0x2c]
js 0x181b2
mov eax, dword [ebp + 8]
sub eax, dword [esi + 0x30]
js 0x181bb
mov byte [ebp - 1], 1
jmp 0x17d3e
push dword [ebp + 8]
push esi
call fcn.00016eff
jmp 0x181b2
cmp dword [esi + 0x184], ebx
jne 0x17686
push 0x32
push 3
push esi
call fcn.000169ec
jmp 0x17686
xor al, al
jmp 0x17bbb
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 0x17a13
cmp edi, ecx
jbe 0x1795e
jmp 0x1765c
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x17a69
push dword [eax + 0x2c]
push 6
push esi
call fcn.000169ec
jmp 0x17a69
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 0x17ac1
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 0x17fa6
add ecx, 0xfffffff4
jmp 0x17968
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0x20
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x20]
jmp 0x179a1
mov eax, dword [esi + 0x78]
mov ecx, 0x80000
test ecx, eax
jne 0x3baad
or eax, ecx
push esi
mov dword [esi + 0x78], eax
mov byte [esi + 0x1d], 0
call fcn.0001777e
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 0x18127
test eax, eax
je 0x3b95f
mov eax, dword [eax + 0x24]
test al, 1
je 0x3b95f
test al, 0x40
je 0x3b95f
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 0x3b985
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 0x3b99f
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 0x17af4
push 0
push dword [ebp - 0xc]
push edi
call fcn.00013e80
cmp dword [ebp - 0x20], 0
je 0x17b18
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 0x3b9fa
mov eax, dword [ebp + 8]
sub eax, dword [esi + 0x30]
jns 0x3b9fa
push dword [ebp + 8]
push esi
call fcn.00016eff
cmp dword [esi + 0x178], 0
jne 0x3ba13
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 0x3ba42
mov cx, word [eax + 0x48]
cmp cx, di
jne 0x3ba38
push eax
jmp 0x3ba43
movzx eax, cx
mov dword [ebp - 0x18], eax
xor eax, eax
jmp 0x3ba54
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x10]
push dword [esi + 0xc]
call dword [0x59c88]
cmp eax, edi
jne 0x17686
movzx eax, byte [esi + 0xe4]
lea ecx, [eax + 0x14]
cmp dword [ebp - 0x18], ecx
ja 0x3ba83
mov ax, word [esi + 0x22]
and byte [esi + 0xe7], 0xfd
cmp ax, 0x218
jbe 0x3ba9b
mov eax, 0x218
jmp 0x3ba9e
push 0xffffffffffffffec
pop ecx
sub ecx, eax
mov ax, word [esi + 0x22]
add dword [ebp - 0x18], ecx
cmp word [ebp - 0x18], ax
jae 0x3ba9b
movzx eax, word [ebp - 0x18]
jmp 0x3ba9e
movzx eax, ax
push esi
mov word [esi + 0x20], ax
call fcn.0001c3b7
jmp 0x17d3e
cmp dword [esi + 0x178], ebx
jne 0x17686
movzx eax, word [esi + 0x8c]
push eax
push ebx
jmp 0x182c5
cmp ebx, 0x2b01
jne 0x3baec
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
add eax, ecx
mov ecx, eax
sub ecx, dword [esi + 0x2c]
js 0x3baec
mov ecx, eax
sub ecx, dword [esi + 0x30]
jns 0x3baec
push eax
push esi
call fcn.00016eff
cmp dword [esi + 0x178], 0
jne 0x3bb05
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 0x3bb2c
push esi
call fcn.0001777e
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 0x3bb64
push esi
call fcn.0001777e
movzx eax, ax
push eax
push ebx
push esi
call fcn.000169ec
and dword [esi + 0x78], 0xffbbfbff
jmp 0x176a0