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

Disassembly:
push 0xffffffffffffffff
push 0x546c10
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x579aa4]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x579aa4]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, dword [esp + 0x78]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x70], 0
mov ecx, dword [esp + 0x7c]
test ecx, ecx
sete al
test al, al
jne 0x43dbb4
test esi, esi
je 0x43dbb4
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43dbb0
test byte [0x57ec18], 1
jne 0x43d774
or dword [0x57ec18], 1
mov ecx, 0x57ec1c
call fcn.00401620
cmp byte [0x57ec28], 0
je 0x43d79f
mov eax, dword [0x57ec1c]
cmp eax, 0x64
je 0x43d79f
push 0x64
push eax
mov eax, dword [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x80], eax
test byte [0x57ec18], 1
jne 0x43d7b9
or dword [0x57ec18], 1
mov ecx, 0x57ec1c
call fcn.00401620
cmp byte [0x57ec28], 0
je 0x43d7dd
mov eax, dword [0x57ec1c]
cmp eax, 0x64
je 0x43d7dd
push 0x64
push eax
push 0x1b
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x38], eax
jmp 0x43d7e5
mov dword [esp + 0x38], 0x1b
mov eax, dword [esp + 0x7c]
xor ebx, ebx
test eax, eax
jne 0x43d7f9
push 0x80004003
call fcn.0050a1f0
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0xf8]
call eax
cmp dword [esp + 0x30], ebx
je 0x43d813
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x7c]
mov byte [esp + 0x1a], 0
test eax, eax
jne 0x43d82a
push 0x80004003
call fcn.0050a1f0
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
mov eax, dword [esp + 0x24]
push ecx
mov ebp, eax
sub ebp, dword [esp + 0x20]
lea edx, [esp + 0x80]
sub eax, ebx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov dword [esp + 0x2c], eax
call fcn.0044b260
lea edi, [esp + 0x38]
call fcn.0043ac10
mov byte [esp + 0x74], 1
lea eax, [esp + 0x80]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0044b260
call fcn.0043a9a0
add esp, 4
cmp byte [esp + 0x88], 0
mov ecx, eax
mov dword [esp + 0x2c], ecx
je 0x43d89d
xor eax, eax
test ebx, ebx
sete al
jmp 0x43d8a2
mov eax, 1
push 0
push eax
mov eax, dword [esp + 0x3c]
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
push esi
call fcn.00441340
mov esi, eax
mov eax, dword [esp + 0x9c]
add esp, 0x20
mov edi, edx
mov dword [esp + 0x44], edi
test eax, eax
jne 0x43d8da
push 0x80004003
call fcn.0050a1f0
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0xf8]
call eax
cmp dword [esp + 0x30], 0
jne 0x43d900
cmp byte [esp + 0x8c], 0
mov byte [esp + 0x1b], 0
je 0x43d905
mov byte [esp + 0x1b], 1
cmp byte [esp + 0x88], 0
je 0x43da74
push ecx
mov ecx, dword [esp + 0x80]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x34], esp
test eax, eax
je 0x43d936
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
call fcn.00442b90
add esp, 4
test al, al
je 0x43da74
call fcn.00401780
cmp byte [eax + 0xc], 0
je 0x43d969
mov eax, dword [eax]
cmp eax, 0x64
je 0x43d969
push 0x64
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x43d96e
mov eax, 0xa
mov ecx, dword [esp + 0x1c]
add eax, edi
add eax, dword [esp + 0x20]
lea edx, [esi + ecx]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x7c]
add edx, esi
mov dword [esp + 0x24], edx
test eax, eax
jne 0x43d99b
push 0x80004003
call fcn.0050a1f0
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x43d9bc
push 0x80004003
call fcn.0050a1f0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x68]
push 0
push 0x2000
push eax
call edx
mov eax, 0x57f0e8
call fcn.00402660
test al, al
je 0x43db49
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x70], 2
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
sub ecx, esi
push ecx
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x50]
call fcn.0043fe60
add esp, 8
cmp al, 1
jne 0x43da61
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x43da30
lea eax, [esp + 0x4c]
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00404ad0
mov byte [esp + 0x74], 3
mov ecx, dword [esp + 0x80]
test ecx, ecx
jne 0x43da57
push 0x80004003
call fcn.0050a1f0
mov byte [esp + 0x74], 2
call fcn.0044e200
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 1
call fcn.00402ac0
jmp 0x43db49
mov eax, dword [esp + 0x80]
lea esi, [esi + eax*2]
add esi, ebx
cmp ebp, esi
jl 0x43da8f
cmp byte [esp + 0x1b], 0
je 0x43db6d
mov eax, dword [esp + 0x84]
cmp eax, 1
jne 0x43daa7
mov ecx, dword [esp + 0x1c]
add esi, ecx
mov dword [esp + 0x24], esi
jmp 0x43db0c
test eax, eax
jne 0x43dab7
mov edx, dword [esp + 0x24]
sub edx, esi
mov dword [esp + 0x1c], edx
jmp 0x43db0c
mov eax, esi
sub eax, ebp
cdq
sub eax, edx
mov edi, eax
sar edi, 1
call fcn.00401780
cmp byte [eax + 0xc], 0
je 0x43dae1
mov eax, dword [eax]
cmp eax, 0x64
je 0x43dae1
push 0x64
push eax
push 5
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x43dae6
mov eax, 5
movzx ecx, byte [0x57f104]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [esp + 0x1c]
lea edx, [ecx + edi]
mov edi, dword [esp + 0x44]
sub eax, edx
add ecx, esi
add ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
cmp byte [esp + 0x8c], 0
je 0x43db28
mov eax, dword [esp + 0x80]
lea ecx, [edi + eax*2]
add ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x43db3a
push 0x80004003
call fcn.0050a1f0
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
push 1
lea ecx, [esp + 0x20]
push ecx
push eax
call edx
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x43db5b
push 0x80004003
call fcn.0050a1f0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x9c]
push 1
push eax
call edx
mov byte [esp + 0x1a], 1
mov byte [esp + 0x70], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43db92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x43dbaa
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, byte [esp + 0x1a]
jmp 0x43dbca
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x70], 0xffffffff
test ecx, ecx
je 0x43dbc8
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0050c75f
add esp, 0x60
ret