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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x457600
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 0x41137e
cmp dword [esi + 0x158], ebp
je 0x4118f6
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00412930
lea edx, [esp + 0x12]
lea ecx, [esp + 0x48]
push edx
mov dword [esp + 0x7c], ebp
call fcn.00412930
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.00412930
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 + 0x14], ebp
je 0x41148a
cmp dword [esi + 0x148], ebp
je 0x41148a
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.004112f0
lea ecx, [esp + 0x28]
push 0xc
push ecx
mov ecx, dword [esi + 0xd8]
call fcn.00435210
mov dword [esi + 0x14], ebp
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 4
call fcn.0040b2f0
mov byte [esp + 0x78], 3
jmp 0x41167a
mov ecx, dword [esp + 0x4c]
cmp ecx, ebp
jne 0x411496
xor eax, eax
jmp 0x41149f
mov eax, dword [esp + 0x50]
sub eax, ecx
sar eax, 4
mov edi, dword [esp + 0x3c]
mov ebx, eax
mov eax, dword [esi + 0xb0]
mov dword [esp + 0x14], ebx
cmp eax, ebp
je 0x4114d0
cmp edi, ebp
je 0x4114c8
mov eax, dword [esp + 0x40]
sub eax, edi
sar eax, 4
cmp eax, 5
jbe 0x4114ca
inc ebx
jmp 0x4114cc
xor eax, eax
add ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffff
je 0x411556
mov ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
cmp ebp, eax
je 0x411554
mov al, byte [esi + 0x80]
test al, al
jne 0x411500
mov al, byte [esi + 0x78]
test al, al
jne 0x411500
mov ecx, dword [esi + 0x60]
push ebp
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x411529
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 + 0x60]
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 0x411540
add ebx, eax
mov eax, dword [esp + 0x68]
add ebp, 0x10
cmp ebp, eax
jne 0x4114e4
mov dword [esp + 0x14], ebx
jmp 0x411550
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 + 0xb0], ebp
jne 0x4115c9
cmp ebx, 0xffff
je 0x41160d
cmp edi, dword [esp + 0x40]
je 0x4115c9
mov al, byte [esi + 0x80]
test al, al
jne 0x41158c
mov al, byte [esi + 0x78]
test al, al
jne 0x41158c
mov ecx, dword [esi + 0x60]
push edi
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x4115b4
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 + 0x60]
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 0x4115fd
add ebx, eax
mov eax, dword [esp + 0x40]
add edi, 0x10
cmp edi, eax
jne 0x411570
mov dword [esp + 0x14], ebx
cmp ebx, 0xffff
je 0x41160d
cmp dword [esi + 0x158], ebp
je 0x4115de
inc ebx
mov dword [esp + 0x14], ebx
cmp ebx, ebp
jne 0x41160d
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 6
call fcn.0040b2f0
mov byte [esp + 0x78], 5
jmp 0x4118dc
mov dword [esp + 0x14], ebx
mov dword [esp + 0x14], 0xffff
mov ebx, dword [esp + 0x14]
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.004112f0
test eax, eax
jne 0x411699
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 9
call fcn.0040b2f0
mov byte [esp + 0x78], 8
lea ecx, [esp + 0x48]
call fcn.0040b2f0
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0xffffffff
call fcn.0040b2f0
jmp 0x41195a
mov eax, dword [esi + 0x158]
test eax, eax
je 0x4116d0
mov ecx, esi
call fcn.00412550
test eax, eax
jne 0x4116d0
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xb
call fcn.0040b2f0
mov byte [esp + 0x78], 0xa
jmp 0x4118dc
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x411731
mov eax, dword [esp + 0x50]
mov ecx, eax
sub ecx, edi
sar ecx, 4
mov dword [esp + 0x20], ecx
je 0x411731
mov ebp, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
neg ebp
neg ebx
cmp edi, eax
je 0x411726
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.00411f60
test eax, eax
je 0x41178b
mov eax, dword [esp + 0x50]
add edi, 0x10
cmp edi, eax
jne 0x4116f9
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x80]
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x4117e6
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4117b4
mov eax, dword [esp + 0x40]
sub eax, ecx
sar eax, 4
cmp eax, 5
jbe 0x4117b4
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.004125e0
test eax, eax
jne 0x41182f
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xf
call fcn.0040b2f0
mov byte [esp + 0x78], 0xe
jmp 0x4118dc
mov eax, dword [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xd
call fcn.0040b2f0
mov byte [esp + 0x78], 0xc
jmp 0x4118dc
lea edx, [esp + 0x38]
mov ecx, esi
push edx
call fcn.004123c0
test eax, eax
jne 0x41182f
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0x11
call fcn.0040b2f0
mov byte [esp + 0x78], 0x10
jmp 0x4118dc
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.004119d0
test eax, eax
jne 0x41182f
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], 0x13
call fcn.004042e0
mov eax, dword [esp + 0x64]
push eax
call fcn.00447e1a
mov byte [esp + 0x7c], 0x12
jmp 0x4118cb
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call fcn.004119d0
test eax, eax
jne 0x411875
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], 0x15
call fcn.004042e0
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00447e1a
mov byte [esp + 0x7c], 0x14
jmp 0x4118cb
cmp ebx, 0xffff
jne 0x4118fa
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0xd8]
push eax
mov edx, dword [ecx]
call dword [edx + 0x28]
mov ecx, esi
call fcn.004125a0
test eax, eax
jne 0x4118fa
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], 0x17
call fcn.004042e0
mov edx, dword [esp + 0x64]
push edx
call fcn.00447e1a
mov byte [esp + 0x7c], 0x16
add esp, 4
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0x48]
call fcn.0040b2f0
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0xffffffff
call fcn.0040b2f0
xor eax, eax
jmp 0x41195f
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x78], 0xffffffff
push eax
call fcn.00447e1a
mov ecx, dword [esp + 0x50]
xor esi, esi
push ecx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
call fcn.00447e1a
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
add esp, 8
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
push edx
push eax
mov dword [esp + 0x5c], esi
call fcn.004042e0
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00447e1a
add esp, 4
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