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

Disassembly:
sub esp, 0x80
mov edx, dword [esp + 0x84]
push ebx
push ebp
push esi
push edi
mov edi, eax
mov ecx, dword [edi + 0x7f]
mov esi, dword [edi + 4]
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], al
mov dword [esp + 0x88], eax
mov byte [esp + 0x13], al
mov eax, dword [edi + 0x73]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx]
push ecx
mov dword [esp + 0x48], eax
mov eax, dword [edi]
push esi
mov dword [esp + 0x60], eax
push eax
mov eax, dword [edi + 0x6f]
mov dword [esp + 0x68], esi
mov dword [esp + 0x38], ecx
call eax
mov ebp, eax
mov ebx, edx
mov ecx, ebp
add esp, 0xc
or ecx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebx
je 0x41e2af
mov eax, dword [esp + 0x98]
sub eax, 0
je 0x41dfa0
sub eax, 1
je 0x41d8f6
sub eax, 1
jne 0x41e2af
mov edx, ebp
shl edx, 4
add edx, dword [esp + 0x40]
test byte [edx + ebp + 0x10], 1
lea eax, [edx + ebp]
mov dword [esp + 0x14], eax
je 0x41d73b
nop
push ebx
push ebp
mov ecx, edi
call fcn.0041d3e0
add esp, 8
test al, al
je 0x41d73b
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
push edx
call dword [esp + 0x4c]
add esp, 8
test eax, eax
je 0x41d6d5
mov eax, dword [esp + 0x14]
test byte [eax + 0x10], 2
jne 0x41d73b
add dword [esp + 0x48], 1
mov eax, dword [esp + 0x4c]
adc eax, 0
mov dword [esp + 0x4c], eax
cmp eax, esi
ja 0x41e2af
jb 0x41d6fd
mov ecx, dword [esp + 0x48]
cmp ecx, dword [esp + 0x58]
ja 0x41e2af
add ebp, dword [esp + 0x78]
mov edx, dword [esp + 0x58]
adc ebx, dword [esp + 0x7c]
push esi
push edx
push ebx
push ebp
call fcn.0047db40
mov ebp, eax
mov ebx, edx
cmp ebp, dword [esp + 0x78]
jne 0x41d722
cmp ebx, dword [esp + 0x7c]
je 0x41d73b
mov eax, ebp
shl eax, 4
add eax, dword [esp + 0x40]
add eax, ebp
test byte [eax + 0x10], 1
mov dword [esp + 0x14], eax
jne 0x41d6a0
mov ecx, ebp
shl ecx, 4
add ecx, dword [esp + 0x40]
test byte [ecx + ebp + 0x10], 2
lea esi, [ecx + ebp]
je 0x41e2af
push ebx
push ebp
mov ecx, edi
call fcn.0041d3e0
add esp, 8
test al, al
je 0x41d779
mov edx, dword [esp + 0x2c]
mov eax, dword [esi]
push edx
push eax
call dword [esp + 0x4c]
add esp, 8
test eax, eax
je 0x41e2af
cmp dword [esp + 0x9c], 0
je 0x41d8a0
cmp dword [edi + 0x7b], 0
je 0x41d8a0
lea eax, [edi + 0x3f]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x9c]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x11]
push ecx
mov ecx, dword [edi + 0x7b]
push edx
push eax
call ecx
mov dword [esp + 0x38], eax
add esp, 0xc
lea eax, [edi + 0x3f]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x11], 0
je 0x41e2af
cmp dword [edi + 0x57], 0xffffffff
je 0x41d803
push 0
push 0x11
push ebx
push ebp
call fcn.0047d6f0
add eax, dword [edi + 0x12]
push 0x11
adc edx, dword [edi + 0x16]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x57]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x68]
push edx
push eax
lea eax, [esp + 0x3c]
call fcn.0041eee0
add esp, 0xc
cmp dword [esp + 0x2c], 0
jne 0x41d8b2
lea ebp, [edi + 0x3f]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and byte [esi + 0x10], 0xfd
call fcn.0041d160
call fcn.0041d190
add dword [edi + 8], 0xffffffff
lea ebx, [edi + 8]
push ebp
adc dword [ebx + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [edi + 0x83], 0
je 0x41d8e9
mov al, byte [esi + 0x10]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x78]
and al, 3
push edx
mov edx, dword [edi + 0x57]
mov ecx, 1
mov byte [esp + 0x7c], al
call fcn.0041ed90
add esp, 8
cmp byte [edi + 0x83], 0
mov ecx, 8
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 0
je 0x41d8e9
mov edx, dword [edi + 0x57]
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.0041ed90
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov byte [esp + 0x11], 1
mov dword [esp + 0x2c], 0
jmp 0x41d7cd
mov ecx, dword [edi + 0x1a]
add ecx, dword [esp + 0x6c]
mov edx, dword [edi + 0x1e]
adc edx, dword [esp + 0x70]
cmp byte [edi + 0x83], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
je 0x41d8e9
mov ecx, dword [esi + 8]
mov edx, dword [edi + 0x57]
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.0041ed90
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x41d904
mov byte [eax], 0
test byte [edi + 0x3a], 2
mov byte [esp + 0x3f], 1
mov byte [esp + 0x3e], 1
mov byte [esp + 0x11], 0
jne 0x41e2af
lea eax, [edi + 0x3f]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, ebp
shl edx, 4
add edx, dword [esp + 0x40]
test byte [edx + ebp + 0x10], 0x22
lea esi, [edx + ebp]
jne 0x41d949
or byte [esi + 0x10], 0x20
mov byte [esp + 0x12], 1
jmp 0x41d94e
mov byte [esp + 0x12], 0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x12], 0
jne 0x41db3f
push ebx
push ebp
mov ecx, edi
call fcn.0041d3e0
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
mov dl, byte [esi + 0x10]
mov byte [esp + 0x63], dl
je 0x41d999
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0047a868
add esp, 4
mov edx, dword [esp + 0x20]
or edx, dword [esp + 0x24]
je 0x41d9b0
mov eax, dword [esp + 0x20]
push eax
call fcn.0047a868
add esp, 4
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x24], ecx
mov cl, byte [esi + 0x10]
mov dword [esp + 0x20], edx
mov byte [esp + 0x28], cl
test cl, 2
je 0x41da0f
mov edx, dword [edi + 0x67]
push eax
call edx
cdq
add esp, 4
mov dword [esp + 0x18], eax
or eax, edx
mov dword [esp + 0x1c], edx
je 0x41d9ee
or byte [esp + 0x28], 8
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 0x6b]
push eax
call ecx
cdq
add esp, 4
mov dword [esp + 0x20], eax
or eax, edx
mov dword [esp + 0x24], edx
je 0x41da21
or byte [esp + 0x28], 0x10
jmp 0x41da21
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test byte [esp + 0x28], 2
je 0x41db3f
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [esp + 0x4c]
add esp, 8
test eax, eax
jne 0x41dd50
mov dl, byte [esp + 0x63]
or byte [esi + 0x10], 1
cmp dl, byte [esi + 0x10]
je 0x41daa8
mov al, byte [esi + 0x10]
push 0
push 0x11
push ebx
and al, 3
push ebp
mov byte [esp + 0x67], al
call fcn.0047d6f0
add eax, dword [edi + 0x12]
adc edx, dword [edi + 0x16]
add eax, 0x10
adc edx, 0
cmp byte [edi + 0x83], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
je 0x41daa8
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x5b]
push edx
mov edx, dword [edi + 0x57]
mov ecx, 1
call fcn.0041ed90
add esp, 8
add dword [esp + 0x48], 1
mov eax, dword [esp + 0x4c]
adc eax, 0
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x5c]
ja 0x41dd84
jb 0x41dad2
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x58]
ja 0x41dd84
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push ecx
add ebp, esi
adc ebx, dword [esp + 0x80]
push edx
push ebx
push ebp
call fcn.0047db40
mov ebp, eax
mov ebx, edx
cmp ebp, esi
jne 0x41db02
cmp ebx, dword [esp + 0x7c]
je 0x41dd84
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebp
shl ecx, 4
add ecx, dword [esp + 0x40]
test byte [ecx + ebp + 0x10], 0x22
lea esi, [ecx + ebp]
jne 0x41db29
or byte [esi + 0x10], 0x20
mov byte [esp + 0x12], 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x12], 0
je 0x41d964
cmp byte [esp + 0x3e], 0
jne 0x41db51
cmp byte [esp + 0x11], 0
je 0x41df1c
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [edi + 0x83], 0
je 0x41dbd7
mov eax, dword [edi + 0x32]
inc dword [edi + 0x2e]
or eax, dword [edi + 0x36]
lea esi, [edi + 0x32]
jne 0x41db7a
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
cmp dword [edi + 0x2e], 0x186a0
mov ecx, dword [esp + 0x84]
jae 0x41dbb3
mov eax, dword [esp + 0x80]
sub eax, dword [esi]
mov edx, ecx
sbb edx, dword [esi + 4]
mov dword [esp + 0x5c], edx
jne 0x41dbb3
cmp eax, 0x1c9c380
jb 0x41dbd7
mov al, byte [edi + 0x3a]
test al, 0x40
jne 0x41dbd7
mov edx, dword [esp + 0x80]
or al, 0x40
mov dword [esi], edx
mov dword [esi + 4], ecx
mov dword [edi + 0x2e], 0
mov byte [edi + 0x3a], al
mov byte [esp + 0x13], 1
mov eax, ebp
shl eax, 4
add eax, dword [esp + 0x40]
or byte [eax + ebp + 0x10], 2
cmp byte [esp + 0x3f], 0
lea esi, [eax + ebp]
je 0x41dc13
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx]
mov eax, dword [edi + 0x67]
push edx
call eax
cdq
mov dword [esi], eax
mov dword [esi + 4], edx
or byte [esi + 0x10], 8
add esp, 4
add dword [edi + 8], 1
adc dword [edi + 0xc], 0
call fcn.0041d190
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx + 8]
mov eax, dword [edi + 0x6b]
push edx
call eax
mov ecx, dword [esp + 0x18]
cdq
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
or byte [esi + 0x10], 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [edi + 0x83], 0
je 0x41df1c
cmp dword [edi + 0x57], 0xffffffff
je 0x41df1c
mov eax, dword [esp + 0x94]
mov edx, dword [eax]
mov ecx, dword [edx]
mov edx, dword [eax + 8]
mov eax, dword [edx]
push 0
push 0x11
push ebx
push ebp
mov dword [esp + 0x54], ecx
mov dword [esp + 0x3c], eax
call fcn.0047d6f0
add eax, dword [edi + 0x12]
adc edx, dword [edi + 0x16]
cmp byte [esp + 0x3f], 0
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
je 0x41dde4
mov ecx, dword [esi]
mov dword [esp + 0x64], ecx
mov edx, dword [esi + 4]
mov dword [esp + 0x68], edx
mov eax, dword [esi + 8]
mov dword [esp + 0x6c], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], ecx
mov dl, byte [esi + 0x10]
push eax
mov byte [esp + 0x78], dl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x22]
mov ecx, dword [edi + 0x26]
mov esi, dword [esp + 0x44]
xor ebx, ebx
mov edx, esi
add edx, eax
adc ebx, ecx
mov dword [esp + 0x64], eax
mov eax, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x68], ecx
mov ecx, ebx
xor ebx, ebx
add edx, eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
adc ebx, ecx
push eax
mov dword [esp + 0x74], ecx
mov dword [edi + 0x22], edx
mov dword [edi + 0x26], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x2c]
add ecx, esi
push ecx
call fcn.0047a780
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41dda3
mov edx, dword [esp + 0x94]
mov eax, dword [edx]
push esi
push eax
push ebx
call fcn.0047d7b0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0xa0]
mov eax, dword [edx + 8]
add esp, 0xc
push ecx
push eax
lea ecx, [esi + ebx]
push ecx
call fcn.0047d7b0
add esp, 0xc
jmp 0x41de44
mov eax, dword [edi + 0x77]
mov byte [esp + 0x3f], 0
test eax, eax
je 0x41db3f
lea ecx, [esp + 0x11]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x42]
push edx
mov edx, dword [esp + 0x9c]
push ecx
mov ecx, dword [edx + 8]
push ecx
call eax
add esp, 0x10
jmp 0x41db3f
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x41e2af
mov byte [eax], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov edx, dword [edi + 0x1a]
add edx, dword [esp + 0x64]
mov eax, dword [edi + 0x1e]
adc eax, dword [esp + 0x68]
cmp byte [edi + 0x83], 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
je 0x41de44
mov ecx, dword [esp + 0x94]
mov eax, dword [ecx]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
mov edx, dword [edi + 0x57]
push eax
call fcn.0041ed90
add esp, 8
jmp 0x41de44
push 0x11
lea eax, [esp + 0x68]
push eax
mov eax, dword [edi + 0x57]
push eax
lea eax, [esp + 0x64]
call fcn.0041eee0
mov cl, byte [esi + 0x10]
add esp, 0xc
cmp byte [esp + 0x3e], 0
mov byte [esp + 0x74], cl
je 0x41de39
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x22]
mov ecx, dword [edi + 0x26]
mov edx, dword [esp + 0x2c]
xor ebx, ebx
add edx, eax
adc ebx, ecx
push esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [edi + 0x22], edx
mov dword [edi + 0x26], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x88]
mov esi, dword [esp + 0x44]
cmp byte [esp + 0x11], 0
jne 0x41de7d
test ebx, ebx
je 0x41de7d
mov edx, dword [edi + 0x1a]
add edx, dword [esp + 0x64]
mov eax, dword [edi + 0x1e]
adc eax, dword [esp + 0x68]
cmp byte [edi + 0x83], 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
je 0x41deb9
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [edx + esi]
push ebx
jmp 0x41deae
mov eax, dword [edi + 0x1a]
add eax, dword [esp + 0x6c]
mov ecx, dword [edi + 0x1e]
adc ecx, dword [esp + 0x70]
cmp byte [edi + 0x83], 0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
je 0x41deb9
mov edx, dword [esp + 0x94]
mov eax, dword [edx + 8]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [eax]
push eax
mov edx, dword [edi + 0x57]
call fcn.0041ed90
add esp, 8
and byte [esp + 0x74], 3
cmp byte [edi + 0x83], 0
je 0x41dee1
lea edx, [esp + 0x58]
push edx
mov edx, dword [edi + 0x57]
lea eax, [esp + 0x68]
push eax
mov ecx, 0x11
call fcn.0041ed90
add esp, 8
cmp byte [edi + 0x83], 0
mov ecx, 8
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 0
je 0x41df0f
lea edx, [esp + 0x30]
push edx
mov edx, dword [edi + 0x57]
lea eax, [edi + 8]
push eax
call fcn.0041ed90
add esp, 8
test ebx, ebx
je 0x41df1c
push ebx
call fcn.0047a868
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, eax
or ecx, dword [esp + 0x1c]
je 0x41df31
push eax
call fcn.0047a868
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, eax
or edx, dword [esp + 0x24]
je 0x41df46
push eax
call fcn.0047a868
add esp, 4
cmp byte [esp + 0x13], 0
mov esi, dword [esp + 0x14]
je 0x41df63
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and byte [edi + 0x3a], 0xbf
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x12], 0
je 0x41df8a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, ebp
shl eax, 4
add eax, dword [esp + 0x40]
and byte [eax + ebp + 0x10], 0xdf
lea eax, [eax + ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebp
shl eax, 4
add eax, dword [esp + 0x40]
add eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x41dfbb
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov byte [ecx + 0x10], al
lea eax, [edi + 0x3f]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x32]
or ecx, dword [edi + 0x36]
lea esi, [edi + 0x32]
jne 0x41dfd7
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
cmp dword [edi + 0x2e], 0
je 0x41e043
test byte [edi + 0x3a], 0x40
jne 0x41e043
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
cmp dword [edi + 0x2e], 0x186a0
mov ecx, dword [esp + 0x84]
jae 0x41e01f
mov eax, dword [esp + 0x80]
sub eax, dword [esi]
mov edx, ecx
sbb edx, dword [esi + 4]
mov dword [esp + 0x8c], edx
jne 0x41e01f
cmp eax, 0x1c9c380
jb 0x41e043
mov al, byte [edi + 0x3a]
test al, 0x40
jne 0x41e043
mov edx, dword [esp + 0x80]
or al, 0x40
mov dword [esi], edx
mov dword [esi + 4], ecx
mov dword [edi + 0x2e], 0
mov byte [edi + 0x3a], al
mov byte [esp + 0x13], 1
lea esi, [edi + 0x3f]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x13], 0
je 0x41e070
mov eax, dword [edi + 0x57]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and byte [edi + 0x3a], 0xbf
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, ebp
shl ecx, 4
add ecx, dword [esp + 0x40]
test byte [ecx + ebp + 0x10], 1
lea esi, [ecx + ebp]
je 0x41e1d5
jmp 0x41e094
mov ebx, dword [esp + 0x34]
push ebx
push ebp
mov ecx, edi
call fcn.0041d3e0
add esp, 8
lea eax, [edi + 0x3f]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x18]
or edx, dword [esp + 0x1c]
je 0x41e0c1
mov eax, dword [esp + 0x18]
push eax
call fcn.0047a868
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, eax
or ecx, dword [esp + 0x24]
je 0x41e0d6
push eax
call fcn.0047a868
add esp, 4
mov edx, dword [esi + 4]
mov bl, byte [esi + 0x10]
mov ecx, dword [esi + 8]
mov eax, dword [esi]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
test bl, 2
je 0x41e121
push eax
mov eax, dword [edi + 0x67]
call eax
mov ecx, dword [esp + 0x24]
cdq
add esp, 4
mov dword [esp + 0x1c], edx
mov edx, dword [edi + 0x6b]
push ecx
mov dword [esp + 0x1c], eax
or bl, 8
call edx
cdq
add esp, 4
mov dword [esp + 0x24], edx
or bl, 0x10
jmp 0x41e12f
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea eax, [edi + 0x3f]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, 2
je 0x41e157
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [esp + 0x4c]
add esp, 8
test eax, eax
jne 0x41e1d5
add dword [esp + 0x48], 1
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x5c]
adc ecx, 0
mov dword [esp + 0x4c], ecx
cmp ecx, eax
ja 0x41e2af
jb 0x41e183
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x58]
ja 0x41e2af
mov ecx, dword [edi + 8]
or ecx, dword [edi + 0xc]
je 0x41e2af
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x5c]
add ebp, esi
push eax
adc edx, ebx
push edx
push ebp
call fcn.0047db40
mov ebp, eax
mov dword [esp + 0x34], edx
cmp ebp, esi
jne 0x41e1be
cmp edx, ebx
je 0x41e2af
mov ecx, ebp
shl ecx, 4
add ecx, dword [esp + 0x40]
test byte [ecx + ebp + 0x10], 1
lea esi, [ecx + ebp]
jne 0x41e090
lea eax, [edi + 0x3f]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
mov edx, eax
or edx, dword [esp + 0x1c]
je 0x41e1f8
push eax
call fcn.0047a868
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, eax
or ecx, dword [esp + 0x24]
je 0x41e20d
push eax
call fcn.0047a868
add esp, 4
mov edx, ebp
shl edx, 4
add edx, dword [esp + 0x40]
mov ecx, dword [ebp + edx + 4]
mov bl, byte [ebp + edx + 0x10]
mov eax, dword [ebp + edx]
add ebp, edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
test bl, 2
je 0x41e267
mov edx, dword [edi + 0x67]
push eax
call edx
mov ecx, dword [edi + 0x6b]
cdq
mov esi, eax
mov eax, dword [esp + 0x24]
add esp, 4
push eax
mov dword [esp + 0x20], edx
or bl, 8
call ecx
cdq
add esp, 4
mov edi, eax
mov dword [esp + 0x24], edx
or bl, 0x10
jmp 0x41e273
xor esi, esi
mov dword [esp + 0x1c], esi
xor edi, edi
mov dword [esp + 0x24], esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, 2
jne 0x41e2bc
cmp dword [esp + 0x9c], 0
jne 0x41e2af
mov eax, esi
or eax, dword [esp + 0x1c]
je 0x41e29e
push esi
call fcn.0047a868
add esp, 4
mov ecx, edi
or ecx, dword [esp + 0x24]
je 0x41e2af
push edi
call fcn.0047a868
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov edx, dword [esp + 0x2c]
push edx
push esi
call dword [esp + 0x4c]
add esp, 8
test eax, eax
je 0x41e283
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x41e2ee
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [eax], esi
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], bl
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x80
ret