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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov dword [esp + 0x14], 0
test dword [esi + 8], 0x80000
je 0x43799f
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
mov dword [esp + 0x10], 1
cmp eax, dword [esi + 0x24]
jbe 0x4379a7
mov dword [esp + 0x10], 0
cmp dword [esi], 0
jne 0x4379c7
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov eax, dword [eax]
sub eax, ecx
cmp eax, 0x14ccc
jb 0x4379c7
mov eax, dword [esi + 0x74]
add eax, ecx
jmp 0x4379cd
lea eax, [esi + 0x39272]
mov cl, byte [esi + 0x38]
lea ebp, [esi + 0x34]
mov dword [esi + 0x30], eax
lea edi, [esi + 0x30]
mov dword [esp + 0x1c], 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 eax, eax
cmp dword [esi + 0x38], 8
sete al
sub dword [esi + 0x28], eax
test dword [esi + 8], 0x1000
je 0x437a97
cmp dword [esi + 0x64], 0
lea ebp, [esi + 0x34]
lea edi, [esi + 0x30]
jne 0x437a97
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
lea ecx, [esi + 0x34]
cmp eax, 8
jb 0x437a63
nop dword [eax + eax]
mov eax, dword [esi + 0x30]
cmp eax, dword [ecx]
jae 0x437a4c
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 0x437a40
bts edx, eax
add eax, 8
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x437a91
mov eax, dword [esi + 0x30]
cmp eax, dword [ecx]
jae 0x437a80
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 0x437a74
lea ebp, [esi + 0x34]
lea edi, [esi + 0x30]
mov ecx, dword [esi + 0x44]
xor edx, edx
cmp dword [esp + 0x28], 4
sete dl
shl edx, cl
lea eax, [ecx + 1]
or edx, dword [esi + 0x48]
mov dword [esi + 0x48], edx
mov dword [esp + 0x24], eax
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x437af0
nop dword [eax + eax]
mov eax, dword [edi]
cmp eax, dword [ebp]
jae 0x437acb
mov byte [eax], dl
inc dword [edi]
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
add eax, 0xfffffff8
shr ebx, 8
mov dword [esi + 0x48], ebx
mov dl, bl
mov dword [esp + 0x24], eax
mov dword [esi + 0x44], eax
cmp eax, 8
jae 0x437ac0
lea edi, [esi + 0x30]
lea ebp, [esi + 0x34]
jmp 0x437af2
mov ebx, edx
cmp dword [esp + 0x10], 0
mov ecx, dword [edi]
mov dword [esp + 0x18], ecx
jne 0x437b4a
test dword [esi + 8], 0x40000
lea ebp, [esi + 0x3c]
jne 0x437b15
cmp dword [ebp], 0x30
jb 0x437b15
xor eax, eax
jmp 0x437b1a
mov eax, 1
push eax
push esi
call fcn.004365e0
mov edx, dword [ebp]
add esp, 8
mov dword [esp + 0x14], eax
mov eax, dword [edi]
test edx, edx
je 0x437c94
mov ecx, dword [esp + 0x18]
sub eax, ecx
inc eax
cmp eax, edx
jb 0x437c94
lea edi, [esi + 0x30]
lea ebp, [esi + 0x34]
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x24]
ja 0x437c94
mov eax, dword [esp + 0x24]
add eax, 2
mov dword [edi], ecx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x437b9e
nop dword [eax]
mov edx, ecx
cmp ecx, dword [ebp]
jae 0x437b7d
mov byte [ecx], bl
inc dword [edi]
mov edx, dword [edi]
mov eax, dword [esi + 0x44]
mov ecx, edx
mov ebx, dword [esi + 0x48]
add eax, 0xfffffff8
shr ebx, 8
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], eax
cmp eax, 8
jae 0x437b70
lea ebp, [esi + 0x34]
lea edi, [esi + 0x30]
jmp 0x437ba0
mov edx, ecx
mov ecx, eax
test eax, eax
je 0x437bd8
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], 8
cmp edx, dword [ebp]
jae 0x437bbb
mov byte [edx], bl
inc dword [edi]
mov edx, dword [edi]
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 0x437bb0
lea ebp, [esi + 0x34]
lea edi, [esi + 0x30]
mov dword [esp + 0x24], 2
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
mov edx, ecx
cmp ecx, 8
jb 0x437c24
nop word [eax + eax]
mov eax, dword [edi]
cmp eax, dword [ebp]
jae 0x437c0b
mov byte [eax], bl
inc dword [edi]
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
add ecx, 0xfffffff8
shr ebx, 8
mov edx, ecx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x437c00
mov eax, dword [esp + 0x24]
xor dword [esi + 0x3c], 0xffff
dec eax
mov dword [esp + 0x24], eax
test eax, eax
jne 0x437be0
xor edi, edi
cmp dword [esi + 0x3c], edi
jbe 0x437cb7
nop
mov eax, dword [esi + 0x40]
mov ecx, edx
add eax, edi
add edx, 8
and eax, 0x7fff
movzx eax, byte [eax + esi + 0x90]
shl eax, cl
or eax, ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], eax
mov ebx, eax
cmp edx, 8
jb 0x437c8c
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x437c75
mov byte [eax], bl
inc dword [esi + 0x30]
mov edx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
add edx, 0xfffffff8
shr ebx, 8
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], edx
cmp edx, 8
jae 0x437c68
inc edi
cmp edi, dword [esi + 0x3c]
jb 0x437c40
jmp 0x437cb7
cmp dword [esp + 0x14], 0
jne 0x437cb7
mov eax, dword [esp + 0x18]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x24]
push 1
push esi
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], eax
call fcn.004365e0
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x437e18
mov ecx, dword [esi + 0x44]
cmp eax, 4
jne 0x437d5f
test ecx, ecx
je 0x437d02
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 0x437ced
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 0x437ce0
test dword [esi + 8], 0x1000
je 0x437e18
mov edx, dword [esi + 0x18]
mov edi, 4
mov eax, edx
shr eax, 0x18
shl eax, cl
add ecx, 8
or eax, dword [esi + 0x48]
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], ecx
cmp ecx, 8
jb 0x437d52
nop
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x437d3d
mov byte [ecx], al
inc dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
shr dword [esi + 0x48], 8
add ecx, 0xfffffff8
mov al, byte [esi + 0x48]
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x437d30
shl edx, 8
sub edi, 1
jne 0x437d17
jmp 0x437e18
mov edx, dword [esi + 0x48]
add ecx, 3
xor ebp, ebp
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jb 0x437d96
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x437d7f
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 0x437d72
test ecx, ecx
je 0x437dc8
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], 8
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x437db1
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 0x437da4
mov edi, 2
nop dword [eax]
movzx ebx, bp
shl ebx, cl
add ecx, 0x10
or ebx, edx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], ebx
mov edx, ebx
cmp ecx, 8
jb 0x437e0d
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x437df4
mov byte [eax], bl
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 bl, dl
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x437de7
xor ebp, 0xffff
sub edi, 1
jne 0x437dd0
push 0x240
lea eax, [esi + 0x8192]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x40
lea eax, [esi + 0x83d2]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [esi + 0x30]
lea eax, [esi + 0x9273]
inc dword [esi + 0x64]
add esp, 0x18
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 + 0x1c]
mov dword [esi + 0x38], 8
mov dword [esi + 0x3c], 0
sub edi, eax
je 0x437efd
cmp dword [esi], 0
je 0x437eb1
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 0x437efd
pop edi
mov dword [esi + 0x6c], 0xffffffff
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea edx, [esi + 0x39272]
cmp eax, edx
jne 0x437ef7
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 0x437efd
mov dword [esi + 0x5c], edi
mov eax, edi
pop edi
mov dword [esi + 0x58], ebx
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
add dword [esi + 0x8c], edi
mov eax, dword [esi + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret