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

Disassembly:
push 0xffffffffffffffff
push 0x100de378
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10111fe4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
fldz
xor ebp, ebp
fstp qword [esp + 0x30]
mov dword [esp + 0x38], ebp
call fcn.10089f2c
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x1000393f
push 0x80004005
call fcn.10001000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x78], ebp
call fcn.10089f2c
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x1000396d
push 0x80004005
call fcn.10001000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x78], 1
call fcn.10089f2c
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x1000399c
push 0x80004005
call fcn.10001000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ebx, [esi + 0x84]
mov ecx, ebx
mov byte [esp + 0x78], 2
mov dword [esp + 0x20], ebx
call fcn.1008bdd0
test eax, eax
jne 0x100039f2
push 6
lea ecx, [esi + 0x94]
push str.bookid
call fcn.100018b0
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push ebp
push ebp
push 0xffffffffffffffff
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
push 2
push 1
mov ecx, ebx
call eax
mov ecx, dword [esi + 0x1d4]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push ebp
push 0x1009
push ecx
call edi
cmp dword [esi + 0x14c], 0
jne 0x10003d31
lea ebx, [esi + 0x1b4]
mov eax, dword [esi + 0x194]
push 0
push 0
push 0
push 0
push eax
push ebp
push 1
mov ecx, ebx
call fcn.10096307
mov eax, dword [esi + 0x198]
push eax
push 1
push ebp
mov ecx, ebx
call fcn.10096118
mov eax, dword [esi + 0x19c]
push eax
push 2
push ebp
mov ecx, ebx
call fcn.10096118
mov ecx, dword [esi + 0x1a0]
mov edi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x10003ab7
cmp dword [edi + 0xc], 0
jl 0x10003aa9
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x10003aa9
push eax
call fcn.100016b0
mov dword [esp + 0x28], eax
add esp, 4
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10003a9c
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x24]
add ecx, 0x10
mov dword [esp + 0x14], ecx
jmp 0x10003ab7
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.100018b0
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
mov dword [esi + 0x80], eax
add eax, 0xfffffffe
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
call fcn.10002b50
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
mov byte [esp + 0x78], 3
je 0x10003b34
cmp dword [edi + 0xc], 0
jl 0x10003b26
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x10003b26
push eax
call fcn.100016b0
mov dword [esp + 0x28], eax
add esp, 4
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10003b19
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x24]
add ecx, 0x10
mov dword [esp + 0x14], ecx
jmp 0x10003b34
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.100018b0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x78], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10003b59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
push 3
push ebp
mov ecx, ebx
call fcn.10096118
lea edi, [esi + 0x1a4]
lea edx, [esp + 0x4c]
push edi
push edx
call fcn.100c1592
add esp, 8
test eax, eax
jne 0x10003b8b
mov eax, dword [esp + 0x60]
add eax, 0x76c
jmp 0x10003b8d
xor eax, eax
mov dword [esi + 0x74], eax
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.100c1592
add esp, 8
test eax, eax
jne 0x10003bab
mov eax, dword [esp + 0x5c]
add eax, 1
jmp 0x10003bad
xor eax, eax
lea ecx, [esp + 0x4c]
push edi
push ecx
mov dword [esi + 0x78], eax
call fcn.100c1592
mov edx, dword [esi + 0x78]
mov edi, dword [esi + 0x74]
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0x60]
xor ecx, ecx
mov dword [esi + 0x7c], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov word [esp + 0x4a], ax
xor eax, eax
mov dword [esp + 0x4c], ecx
mov word [esp + 0x46], dx
mov dword [esp + 0x50], ecx
lea edx, [esp + 0x38]
mov word [esp + 0x4c], ax
mov word [esp + 0x4e], ax
mov word [esp + 0x50], ax
push edx
lea eax, [esp + 0x48]
push eax
mov word [esp + 0x4c], di
call fcn.10001020
add esp, 0x10
neg eax
push 0x400
sbb eax, eax
push 2
lea ecx, [esp + 0x34]
add eax, 1
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x44], eax
call fcn.10003680
mov ecx, dword [eax]
mov edi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
mov byte [esp + 0x78], 4
je 0x10003c94
cmp dword [edi + 0xc], 0
jl 0x10003c86
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x10003c86
push eax
call fcn.100016b0
mov dword [esp + 0x28], eax
add esp, 4
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10003c79
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x24]
add ecx, 0x10
mov dword [esp + 0x18], ecx
jmp 0x10003c94
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.100018b0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x78], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10003cb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
push 4
push ebp
mov ecx, ebx
call fcn.10096118
mov eax, dword [esi + 0x1ac]
push eax
push 5
push ebp
mov ecx, ebx
call fcn.10096118
cmp dword [esi + 0x1b0], 0
push 2
lea ecx, [esp + 0x20]
je 0x10003cef
push 0x100e5dcc
jmp 0x10003cf4
push 0x100e5dc8
call fcn.100018b0
mov edx, dword [esp + 0x1c]
push edx
push 6
push ebp
mov ecx, ebx
call fcn.10096118
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push 1
push 1
call edx
add ebp, 1
cmp dword [esi + 0x14c], 0
je 0x10003a1b
mov ebx, dword [esp + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x1d4]
push 0
push 0
push 0x1004
push eax
call edi
test eax, eax
je 0x10003d59
mov ecx, dword [esi + 0x1d4]
push 0
push 0
push 0x103c
push ecx
call edi
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x78], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003d87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x78], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003dac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003dd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret