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

Disassembly:
push 0xffffffffffffffff
push 0x4a0fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d6720]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [esp + 0x78]
mov edi, dword [eax]
mov eax, dword [edi - 0xc]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
jle 0x43f7f8
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.00439cc0
mov ebp, eax
add esp, 0xc
cmp ebp, ebx
jle 0x43f7c3
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [edi + esi*2]
push 0x4b3b5c
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x3c], ebx
call fcn.00483f15
add esp, 0x24
cmp eax, 7
jne 0x43f7f0
lea edi, [esi + ebp]
cmp edi, 0xffffffff
je 0x43f7f0
cmp edi, esi
jle 0x43f7f0
mov ecx, dword [esp + 0x18]
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0xef9db22d
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx edx, word [esp + 0x1c]
imul eax, eax, 0x3e8
add ecx, eax
movzx eax, word [esp + 0x20]
mov word [esp + 0x48], dx
xor edx, edx
mov word [esp + 0x4c], dx
movzx edx, word [esp + 0x28]
mov word [esp + 0x4a], ax
movzx eax, word [esp + 0x24]
mov word [esp + 0x50], dx
movzx edx, word [esp + 0x30]
mov word [esp + 0x4e], ax
movzx eax, word [esp + 0x2c]
mov dword [esp + 0x18], ecx
mov word [esp + 0x56], cx
lea ecx, [esp + 0x58]
mov word [esp + 0x54], dx
push ecx
lea edx, [esp + 0x4c]
mov word [esp + 0x56], ax
xor eax, eax
push edx
push ebx
mov word [esp + 0x64], ax
mov dword [esp + 0x66], eax
mov dword [esp + 0x6a], eax
mov dword [esp + 0x6e], eax
mov word [esp + 0x72], ax
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x43f7ea
call fcn.00468b49
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x43f7e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
fldz
lea ecx, [esp + 0x3c]
fstp qword [esp + 0x3c]
push ecx
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x4c], ebx
call fcn.004057a0
add esp, 8
neg eax
sbb eax, eax
inc eax
cmp dword [esp + 0x7c], 2
mov dword [esp + 0x44], eax
jne 0x43f72a
push 0x409
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0042fb30
add esp, 0x10
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 1
call fcn.00401a50
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x70], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x43f765
push ebx
push ebx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0042fb30
add esp, 0x10
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 2
call fcn.00401a50
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x70], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f771
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x78]
sub edi, esi
inc edi
push edi
push esi
mov ecx, ebp
call fcn.00406230
mov edi, dword [esp + 0x14]
push edi
push esi
mov ecx, ebp
call fcn.004223a0
mov eax, dword [edi - 0xc]
lea esi, [eax + esi - 1]
lea eax, [edi - 0x10]
mov dword [esp + 0x14], 1
mov dword [esp + 0x70], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f7cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x43f7cb
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x78]
mov edi, dword [ebp]
mov eax, dword [edi - 0xc]
inc esi
cmp esi, eax
mov dword [esp + 0x18], esi
jl 0x43f564
jmp 0x43f7f8
push 0x80004005
call fcn.00401210
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret