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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x455a08
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x80]
mov esi, ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x30]
xor ebp, ebp
test al, al
je 0x41112b
cmp dword [esi + 0x158], ebp
jne 0x41112b
cmp dword [esi + 0x18], ebp
jne 0x41112b
cmp dword [esi + 0x160], ebp
je 0x4117c0
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00413330
lea edx, [esp + 0x12]
lea ecx, [esp + 0x48]
push edx
mov dword [esp + 0x7c], ebp
call fcn.00413330
lea eax, [esp + 0x13]
lea ecx, [esp + 0x60]
push eax
mov byte [esp + 0x7c], 1
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
call fcn.00413330
mov edx, dword [edi]
lea eax, [esp + 0x38]
push eax
mov ecx, edi
mov dword [esp + 0x7c], 2
call dword [edx + 0x20]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x34]
cmp dword [esi + 0x18], ebp
je 0x411240
cmp dword [esi + 0x148], ebp
je 0x411240
mov ax, word [esi + 0x150]
mov ecx, dword [esi + 0x150]
mov edx, dword [esi + 0x154]
push 4
shl ax, 8
sar ecx, 8
xor cl, al
mov word [esp + 0x2c], bp
and ecx, 0xff
mov word [esp + 0x2e], bp
xor ecx, eax
mov ax, word [esi + 0x154]
shl ax, 8
sar edx, 8
xor dl, al
mov word [esp + 0x30], cx
and edx, 0xff
mov ecx, esi
xor edx, eax
lea eax, [esp + 0x18]
push eax
push ebp
mov word [esp + 0x3a], dx
mov dword [esp + 0x3c], 0x21ffffff
mov word [esp + 0x22], 0x100
call fcn.00411090
lea ecx, [esp + 0x28]
push 0xc
push ecx
mov ecx, dword [esi + 0xe8]
call fcn.00438ce0
mov dword [esi + 0x18], ebp
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 4
call fcn.0040a470
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 3
call fcn.0040a470
jmp 0x411825
mov ecx, dword [esp + 0x4c]
cmp ecx, ebp
jne 0x41124c
xor eax, eax
jmp 0x411255
mov eax, dword [esp + 0x50]
sub eax, ecx
sar eax, 4
mov edi, dword [esp + 0x3c]
mov ebx, eax
mov eax, dword [esi + 0xb8]
mov dword [esp + 0x14], ebx
cmp eax, ebp
je 0x411286
cmp edi, ebp
je 0x41127e
mov eax, dword [esp + 0x40]
sub eax, edi
sar eax, 4
cmp eax, 5
jbe 0x411280
inc ebx
jmp 0x411282
xor eax, eax
add ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffff
je 0x411313
mov ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
cmp ebp, eax
je 0x411311
mov al, byte [esi + 0x88]
test al, al
jne 0x4112bd
mov al, byte [esi + 0x80]
test al, al
jne 0x4112bd
mov ecx, dword [esi + 0x68]
push ebp
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x4112e6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x68]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x28]
mov edx, dword [ecx]
push eax
call dword [edx + 0xc]
test eax, eax
je 0x4112fd
add ebx, eax
mov eax, dword [esp + 0x68]
add ebp, 0x10
cmp ebp, eax
jne 0x41129e
mov dword [esp + 0x14], ebx
jmp 0x41130d
mov dword [esp + 0x14], ebx
mov dword [esp + 0x14], 0xffff
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
xor ebp, ebp
cmp dword [esi + 0xb8], ebp
jne 0x411397
cmp ebx, 0xffff
je 0x411397
cmp edi, dword [esp + 0x40]
je 0x411397
mov al, byte [esi + 0x88]
test al, al
jne 0x411348
mov al, byte [esi + 0x80]
test al, al
jne 0x411348
mov ecx, dword [esi + 0x68]
push edi
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x411370
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x68]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x28]
mov edx, dword [ecx]
push eax
call dword [edx + 0xc]
cmp eax, ebp
je 0x411387
add ebx, eax
mov eax, dword [esp + 0x40]
add edi, 0x10
cmp edi, eax
jne 0x411329
mov dword [esp + 0x14], ebx
jmp 0x411397
mov dword [esp + 0x14], ebx
mov dword [esp + 0x14], 0xffff
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0x68]
call fcn.0041cb30
test eax, eax
jne 0x4113a9
mov dword [esi + 0x158], ebp
cmp ebx, 0xffff
je 0x4113f3
cmp dword [esi + 0x158], ebp
je 0x4113be
inc ebx
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x160], ebp
je 0x4113cb
inc ebx
mov dword [esp + 0x14], ebx
cmp ebx, ebp
jne 0x4113f3
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 6
call fcn.0040a470
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 5
call fcn.0040a470
jmp 0x4117af
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
mov ebp, eax
push ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, ebx
mov ecx, ebx
shl eax, 8
sar ecx, 8
xor cl, al
lea edx, [esp + 0x18]
and ecx, 0xff
push 4
xor ecx, eax
push edx
mov word [esp + 0x22], cx
push 0
mov ecx, esi
mov byte [esp + 0x84], 7
call fcn.00411090
test eax, eax
jne 0x41146e
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 9
call fcn.0040a470
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 8
call fcn.0040a470
jmp 0x411825
mov eax, dword [esi + 0x158]
test eax, eax
je 0x4114ae
mov ecx, esi
call fcn.004120a0
test eax, eax
jne 0x4114ae
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xb
call fcn.0040a470
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 0xa
call fcn.0040a470
jmp 0x4117af
mov eax, dword [esi + 0x160]
test eax, eax
je 0x4114ee
mov ecx, esi
call fcn.004120f0
test eax, eax
jne 0x4114ee
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xd
call fcn.0040a470
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 0xc
call fcn.0040a470
jmp 0x4117af
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x41154f
mov eax, dword [esp + 0x50]
mov ecx, eax
sub ecx, edi
sar ecx, 4
mov dword [esp + 0x20], ecx
je 0x41154f
mov ebp, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
neg ebp
neg ebx
cmp edi, eax
je 0x411544
mov ecx, dword [edi]
mov eax, dword [edi + 4]
add ecx, ebx
lea edx, [esp + 0x20]
add eax, ebp
mov dword [esp + 0x20], ecx
push edx
push edi
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.00411c40
test eax, eax
je 0x4115b2
mov eax, dword [esp + 0x50]
add edi, 0x10
cmp edi, eax
jne 0x411517
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x80]
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x41164b
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4115e4
mov eax, dword [esp + 0x40]
sub eax, ecx
sar eax, 4
cmp eax, 5
jbe 0x4115e4
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.004121c0
test eax, eax
jne 0x4116ae
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0x11
call fcn.0040a470
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 0x10
call fcn.0040a470
jmp 0x4117af
mov eax, dword [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xf
call fcn.0040a470
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 0xe
call fcn.0040a470
jmp 0x4117af
lea edx, [esp + 0x38]
mov ecx, esi
push edx
call fcn.00411f10
test eax, eax
jne 0x4116ae
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 0x13
call fcn.00413350
mov edx, dword [esp + 0x64]
push edx
call fcn.00449d1e
xor eax, eax
add esp, 4
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov byte [esp + 0x78], 0x12
call fcn.0040a470
jmp 0x4117af
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.004118a0
test eax, eax
jne 0x4116ae
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push ecx
push edx
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 0x15
call fcn.00413350
mov eax, dword [esp + 0x64]
push eax
call fcn.00449d1e
xor eax, eax
add esp, 4
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov byte [esp + 0x78], 0x14
call fcn.0040a470
jmp 0x4117af
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call fcn.004118a0
test eax, eax
jne 0x411711
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push edx
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 0x17
call fcn.00413350
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00449d1e
xor eax, eax
add esp, 4
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov byte [esp + 0x78], 0x16
call fcn.0040a470
jmp 0x4117af
cmp ebx, 0xffff
jne 0x4117c4
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0xe8]
push eax
mov edx, dword [ecx]
call dword [edx + 0x28]
mov ecx, esi
call fcn.00412180
test eax, eax
jne 0x4117c4
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 0x19
call fcn.00413350
mov edx, dword [esp + 0x64]
push edx
call fcn.00449d1e
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
add esp, 4
xor esi, esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
push eax
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x74], esi
mov byte [esp + 0x80], 0x18
call fcn.00413350
mov edx, dword [esp + 0x4c]
push edx
call fcn.00449d1e
add esp, 4
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0xffffffff
call fcn.0040a470
xor eax, eax
jmp 0x41183b
mov ecx, dword [esi + 0xe8]
call fcn.00438e00
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x78], 0x1a
push eax
call fcn.00449d1e
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
add esp, 4
xor esi, esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
push ecx
push edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x74], esi
call fcn.00413350
mov eax, dword [esp + 0x4c]
push eax
call fcn.00449d1e
add esp, 4
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0xffffffff
call fcn.0040a470
mov eax, 1
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 4