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

Disassembly:
push 0xffffffffffffffff
push 0x46e018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esi + 0x58]
mov dword [esp + 0x1c], edi
call fcn.00434920
test eax, eax
jne 0x435f24
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebx
call fcn.004178f0
mov ebx, eax
call fcn.004154a0
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jl 0x435f48
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x435f5c
mov ecx, dword [0x4800d8]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404d30
push 0x5c
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], edi
call fcn.00404b00
lea edx, [esi + 4]
push edx
push 0x4708a4
lea eax, [esp + 0x2c]
push eax
call fcn.0040ab30
mov eax, dword [eax]
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.00403ab0
mov eax, dword [esp + 0x24]
mov ecx, dword [0x4800dc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x435fc2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x435fc2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800d8]
mov dword [esp + 0x10], eax
push 0x104
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.004042d0
test eax, eax
je 0x435ff4
mov eax, dword [esp + 0x10]
mov dword [eax - 8], 0x104
mov byte [eax + 0x104], 0
mov edx, dword [ebx]
push ebp
push edi
push 0x104
push eax
mov eax, dword [esp + 0x24]
push eax
mov ecx, ebx
call dword [edx + 0xfc]
lea ecx, [esp + 0x14]
call fcn.00404410
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
mov byte [eax + ebp], 0
mov eax, dword [ebp - 8]
cmp eax, 4
jle 0x43605f
push 4
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004059f0
mov eax, dword [eax]
push str..exe
push eax
mov dword [esp + 0x2c], 1
call fcn.00457f3f
add esp, 8
test eax, eax
mov byte [esp + 0x10], 1
je 0x436064
mov byte [esp + 0x10], 0
test byte [esp + 0x24], 1
je 0x43609a
mov eax, dword [esp + 0x28]
mov ecx, dword [0x4800dc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x43609a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43609a
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
mov al, byte [esp + 0x10]
test al, al
je 0x4360c7
push 0x22
push edi
lea ecx, [esp + 0x1c]
call fcn.00435790
lea eax, [esp + 0x10]
push eax
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x18], 0x22
call fcn.00403ab0
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 0x48]
cmp eax, edi
mov dword [esp + 0x24], edi
je 0x4361b8
mov edx, dword [esi + 0x44]
mov eax, dword [edx]
cmp eax, edx
je 0x4360f4
nop
mov ecx, dword [eax + 8]
mov ecx, dword [ecx - 8]
test ecx, ecx
je 0x4360ee
lea edi, [edi + ecx + 1]
mov eax, dword [eax]
cmp eax, edx
jne 0x4360e0
inc edi
push edi
call fcn.00456452
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x24], edx
jne 0x436168
mov eax, dword [0x4800dc]
lea edx, [ebp - 0xc]
cmp edx, eax
je 0x43612b
add ebp, 0xfffffff4
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43612b
push ebp
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x436153
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x436153
push esi
call fcn.00457c3f
add esp, 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, edi
mov ebp, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x44]
mov edi, dword [eax]
cmp edi, eax
mov ebp, edx
je 0x4361b8
mov edx, dword [edi + 8]
mov eax, dword [edx - 8]
test eax, eax
je 0x4361b1
mov eax, edx
mov ecx, dword [eax - 8]
inc ecx
cmp ecx, 0x7fffffff
ja 0x4361a7
push eax
push ecx
push ebp
call fcn.004084d0
mov eax, dword [edi + 8]
mov eax, dword [eax - 8]
lea ebp, [eax + ebp + 1]
mov edi, dword [edi]
cmp edi, dword [esi + 0x44]
jne 0x436187
mov ecx, dword [0x4800d8]
mov dword [esp + 0x1c], ecx
push 0x104
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 3
call fcn.004042d0
test eax, eax
jne 0x4361dd
xor ecx, ecx
jmp 0x4361ef
mov ecx, dword [esp + 0x1c]
mov dword [ecx - 8], 0x104
mov byte [ecx + 0x104], 0
mov eax, dword [esi + 8]
mov edx, dword [ebx]
push 0
push 0x104
push ecx
push eax
mov ecx, ebx
call dword [edx + 0xfc]
lea ecx, [esp + 0x1c]
call fcn.00404410
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
mov byte [eax + ebp], 0
mov eax, dword [0x4800d8]
mov dword [esp + 0x20], eax
push 0x104
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 4
call fcn.004042d0
test eax, eax
je 0x436252
mov eax, dword [esp + 0x20]
mov dword [eax - 8], 0x104
mov byte [eax + 0x104], 0
mov edx, dword [ebx]
push 0
push 0x104
push eax
mov eax, dword [esi + 0xc]
push eax
mov ecx, ebx
call dword [edx + 0xfc]
lea ecx, [esp + 0x20]
call fcn.00404410
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
mov dword [edi - 8], eax
push 0
mov byte [eax + edi], 0
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x1c]
mov edx, dword [ebx]
push ecx
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esi + 0x24]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esi + 0x20]
push ecx
push eax
push edi
push ebp
mov ecx, ebx
call dword [edx + 0x78]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4362bf
push eax
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x436320
mov eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x436320
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 0x38]
cmp ecx, 0xffffffff
jne 0x4362e9
mov dword [esp + 0x28], ecx
jmp 0x4362f3
imul ecx, ecx, 0x15180
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x34]
mov edx, dword [ebx]
push ecx
mov ecx, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x30]
push ecx
mov ecx, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x2c]
push ecx
push eax
mov eax, dword [esp + 0x44]
push eax
push ebp
mov ecx, ebx
call dword [edx + 0x80]
mov dword [esp + 0x28], eax
mov eax, dword [0x4800dc]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [edi - 0xc]
cmp ecx, eax
je 0x436345
add edi, 0xfffffff4
push edi
call ebx
test eax, eax
jg 0x436345
push edi
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800dc]
lea edx, [ebp - 0xc]
cmp edx, eax
je 0x436364
add ebp, 0xfffffff4
push ebp
call ebx
test eax, eax
jg 0x436364
push ebp
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x436388
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x436388
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4800dc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4363ac
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x4363ac
push esi
call fcn.00457c3f
add esp, 4
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
pop ebp
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret