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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov dword [esp + 0x10], 0
test dword [esi + 8], 0x80000
je 0x4359bf
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
mov dword [esp + 0x1c], 1
cmp eax, dword [esi + 0x24]
jbe 0x4359c7
mov dword [esp + 0x1c], 0
cmp dword [esi], 0
jne 0x4359e7
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov eax, dword [eax]
sub eax, ecx
cmp eax, 0x14ccc
jb 0x4359e7
mov eax, dword [esi + 0x74]
add eax, ecx
jmp 0x4359ed
lea eax, [esi + 0x39272]
mov cl, byte [esi + 0x38]
mov dword [esi + 0x30], eax
mov dword [esp + 0x14], eax
add eax, 0x14cbc
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
shr byte [eax], cl
xor ecx, ecx
cmp dword [esi + 0x38], 8
sete cl
sub dword [esi + 0x28], ecx
test dword [esi + 8], 0x1000
je 0x435a9e
cmp dword [esi + 0x64], 0
jne 0x435a9e
mov ecx, dword [esi + 0x44]
mov edx, 0x78
shl edx, cl
or edx, dword [esi + 0x48]
mov dword [esi + 0x48], edx
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x435a6c
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x435a55
mov byte [eax], dl
inc dword [esi + 0x30]
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
add eax, 0xfffffff8
shr edx, 8
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], eax
cmp eax, 8
jae 0x435a48
bts edx, eax
add eax, 8
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x435a9e
nop dword [eax]
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x435a8d
mov byte [eax], dl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
mov dl, byte [esi + 0x48]
jae 0x435a80
mov ecx, dword [esi + 0x44]
xor edx, edx
cmp dword [esp + 0x20], 4
sete dl
shl edx, cl
lea ebp, [ecx + 1]
or edx, dword [esi + 0x48]
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], ebp
cmp ebp, 8
jb 0x435ae8
nop
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x435acd
mov byte [eax], dl
inc dword [esi + 0x30]
mov ebp, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
add ebp, 0xfffffff8
shr ebx, 8
mov dword [esi + 0x48], ebx
mov dl, bl
mov dword [esi + 0x44], ebp
cmp ebp, 8
jae 0x435ac0
jmp 0x435aea
mov ebx, edx
cmp dword [esp + 0x1c], 0
mov edi, dword [esi + 0x30]
jne 0x435b40
test dword [esi + 8], 0x40000
lea eax, [esi + 0x3c]
jne 0x435b0d
cmp dword [eax], 0x30
mov dword [esp + 0x1c], eax
jb 0x435b0d
xor ecx, ecx
jmp 0x435b16
mov ecx, 1
mov dword [esp + 0x1c], eax
push ecx
push esi
call fcn.004345b0
mov ecx, dword [esp + 0x24]
add esp, 8
mov edx, dword [esi + 0x30]
mov dword [esp + 0x10], eax
mov ecx, dword [ecx]
test ecx, ecx
je 0x435c76
sub edx, edi
inc edx
cmp edx, ecx
jb 0x435c76
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x24]
ja 0x435c72
lea ecx, [ebp + 2]
mov dword [esi + 0x30], edi
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jb 0x435b8a
mov edx, edi
cmp edi, dword [esi + 0x34]
jae 0x435b6f
mov byte [edi], bl
inc dword [esi + 0x30]
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
mov edi, edx
mov ebx, dword [esi + 0x48]
add ecx, 0xfffffff8
shr ebx, 8
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x435b60
jmp 0x435b8c
mov edx, edi
test ecx, ecx
je 0x435bc4
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], 8
nop word [eax + eax]
cmp edx, dword [esi + 0x34]
jae 0x435bad
mov byte [edx], bl
inc dword [esi + 0x30]
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
add ecx, 0xfffffff8
shr ebx, 8
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x435ba0
mov edx, 2
nop dword [eax]
movzx eax, word [esi + 0x3c]
shl eax, cl
add ecx, 0x10
or eax, ebx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], eax
mov ebx, eax
cmp ecx, 8
jb 0x435c0c
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x435bf5
mov byte [eax], bl
inc dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
add ecx, 0xfffffff8
shr ebx, 8
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x435be8
xor dword [esi + 0x3c], 0xffff
sub edx, 1
jne 0x435bd0
cmp dword [esi + 0x3c], edx
jbe 0x435c8e
nop dword [eax]
mov eax, dword [esi + 0x40]
add eax, edx
and eax, 0x7fff
movzx eax, byte [eax + esi + 0x90]
shl eax, cl
add ecx, 8
or eax, ebx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], eax
mov ebx, eax
cmp ecx, 8
jb 0x435c6a
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x435c53
mov byte [eax], bl
inc dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
add ecx, 0xfffffff8
shr ebx, 8
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x435c46
inc edx
cmp edx, dword [esi + 0x3c]
jb 0x435c20
jmp 0x435c8e
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x435c8e
push 1
push esi
mov dword [esi + 0x30], edi
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebp
call fcn.004345b0
add esp, 8
mov eax, dword [esp + 0x20]
test eax, eax
je 0x435df6
mov ecx, dword [esi + 0x44]
cmp eax, 4
jne 0x435d37
test ecx, ecx
je 0x435cd9
mov edx, dword [esi + 0x48]
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], 8
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x435cc4
mov byte [eax], dl
inc dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
shr dword [esi + 0x48], 8
add ecx, 0xfffffff8
mov dl, byte [esi + 0x48]
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x435cb7
test dword [esi + 8], 0x1000
je 0x435df6
mov edi, dword [esi + 0x18]
mov ebx, 4
nop
mov edx, edi
shr edx, 0x18
shl edx, cl
add ecx, 8
or edx, dword [esi + 0x48]
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jb 0x435d2a
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x435d15
mov byte [eax], dl
inc dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
shr dword [esi + 0x48], 8
add ecx, 0xfffffff8
mov dl, byte [esi + 0x48]
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x435d08
shl edi, 8
sub ebx, 1
jne 0x435cf0
jmp 0x435df6
mov edx, dword [esi + 0x48]
add ecx, 3
xor ebx, ebx
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jb 0x435d74
nop word [eax + eax]
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x435d5d
mov byte [eax], dl
inc dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
add ecx, 0xfffffff8
shr edx, 8
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x435d50
test ecx, ecx
je 0x435da6
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], 8
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x435d8f
mov byte [eax], dl
inc dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
add ecx, 0xfffffff8
shr edx, 8
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x435d82
mov edi, 2
nop dword [eax + eax]
movzx eax, bx
shl eax, cl
add ecx, 0x10
or eax, edx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], eax
mov edx, eax
cmp ecx, 8
jb 0x435deb
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x435dd4
mov byte [eax], dl
inc dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
add ecx, 0xfffffff8
shr edx, 8
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x435dc7
xor ebx, 0xffff
sub edi, 1
jne 0x435db0
push 0x280
lea eax, [esi + 0x8192]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [esi + 0x30]
lea eax, [esi + 0x9273]
inc dword [esi + 0x64]
add esp, 0xc
mov dword [esi + 0x28], eax
lea eax, [esi + 0x9272]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x3c]
add dword [esi + 0x40], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x38], 8
mov dword [esi + 0x3c], 0
sub edi, eax
je 0x435ecb
cmp dword [esi], 0
je 0x435e7f
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x84]
sub ecx, dword [esi + 0x70]
mov dword [eax], ecx
lea eax, [esi + 0x39272]
push dword [esi + 4]
push edi
push eax
mov eax, dword [esi]
call eax
add esp, 0xc
test eax, eax
jne 0x435ecb
pop edi
mov dword [esi + 0x6c], 0xffffffff
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 8
ret
lea edx, [esi + 0x39272]
cmp eax, edx
jne 0x435ec5
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov ebx, dword [eax]
mov eax, dword [esi + 0x74]
sub ebx, ecx
cmp edi, ebx
cmovb ebx, edi
add eax, ecx
push ebx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add dword [esi + 0x8c], ebx
add esp, 0xc
sub edi, ebx
je 0x435ecb
mov dword [esi + 0x5c], edi
mov eax, edi
pop edi
mov dword [esi + 0x58], ebx
pop esi
pop ebp
pop ebx
add esp, 8
ret
add dword [esi + 0x8c], edi
mov eax, dword [esi + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret