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

Disassembly:
push 0xffffffffffffffff
push 0x4534c8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x468d80]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468d80]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esp + 0x6c], 0
push esi
je 0x41d4cd
mov dword [edi + 0x28], 3
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [edi + 0x4c], 0
je 0x41d4a9
lea eax, [edi + 0x68]
push eax
call fcn.00420400
mov ecx, eax
call fcn.00420510
mov eax, dword [edi + 4]
test eax, eax
je 0x41d6a8
mov esi, dword [eax]
mov ecx, edi
add esi, 8
call fcn.0041ce20
mov ecx, dword [edi + 4]
mov edx, dword [esi]
push eax
call edx
jmp 0x41d6a8
mov dword [edi + 0x28], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [edi + 0x4c], 0
je 0x41d683
mov esi, dword [edi + 0x5c]
cmp esi, dword [edi + 0x60]
jbe 0x41d4f1
call fcn.0043ead4
mov ebp, dword [edi + 0x50]
mov dword [esp + 0x18], esi
mov ebx, dword [edi + 0x60]
cmp dword [edi + 0x5c], ebx
jbe 0x41d505
call fcn.0043ead4
mov eax, dword [edi + 0x50]
xor esi, esi
cmp ebp, esi
je 0x41d512
cmp ebp, eax
je 0x41d517
call fcn.0043ead4
cmp dword [esp + 0x18], ebx
je 0x41d685
cmp ebp, esi
jne 0x41d676
call fcn.0043ead4
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x41d53e
call fcn.0043ead4
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push esi
xor edx, edx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], esi
mov word [esp + 0x2c], dx
call fcn.00408900
cmp byte [0x46ada9], 0
mov dword [esp + 0x64], esi
jne 0x41d57f
push 0x190
push 0x46ad90
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0x46ad90
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [0x46ada8]
push 0x46ad90
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x41d5a7
mov dword [esp + 0x70], 0x4e21
cmp dword [esp + 0x30], esi
je 0x41d624
xor eax, eax
push 0xa
push 0x10
lea edx, [esp + 0x40]
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
mov dword [esp + 0x52], eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov word [esp + 0x5e], ax
mov eax, dword [esp + 0x78]
push edx
xor ecx, ecx
push eax
mov word [esp + 0x48], cx
call fcn.00440656
lea eax, [esp + 0x48]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41d5f4
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
call fcn.004095d0
push esi
lea edx, [esp + 0x20]
push edx
call fcn.00420400
mov ecx, eax
call fcn.00420480
cmp dword [esp + 0x34], 8
mov dword [esp + 0x64], 0xffffffff
jb 0x41d640
mov eax, dword [esp + 0x20]
push eax
call fcn.0043e5e6
add esp, 4
xor ecx, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], esi
mov word [esp + 0x20], cx
cmp ebp, esi
jne 0x41d67e
call fcn.0043ead4
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x10]
jb 0x41d66c
call fcn.0043ead4
add dword [esp + 0x18], 0x1c
jmp 0x41d4f8
mov eax, dword [ebp]
jmp 0x41d530
mov eax, dword [ebp]
jmp 0x41d65e
xor esi, esi
mov eax, dword [edi + 4]
mov ebx, dword [esp + 0x70]
mov dword [edi + 0x48], ebx
cmp eax, esi
je 0x41d6a8
mov esi, dword [eax]
mov ecx, edi
add esi, 4
call fcn.0041ce20
mov ecx, dword [edi + 4]
push eax
mov eax, dword [esi]
push ebx
call eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0043eed8
add esp, 0x54
ret 8