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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x53a024]
xor eax, esp
mov dword [esp + 0x98], eax
and dword [esp + 0x18], 0
mov eax, edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x2c], ecx
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x18], eax
push esi
inc ecx
mov dword [esp + 0x18], edx
push edi
test eax, eax
je 0x45d8cc
cmp byte [eax], bl
je 0x45d8cc
xor edi, edi
mov esi, 0x401db4
xor ecx, ecx
movzx eax, byte [eax + ecx]
cmp al, byte [esi + ecx]
jne 0x45d909
mov eax, dword [esp + 0x20]
inc ecx
cmp ecx, 9
jne 0x45d652
xor ecx, ecx
xor eax, eax
inc ecx
test eax, eax
je 0x45d8e0
test edi, edi
jne 0x45d8d6
mov eax, dword [ebp + 0x14]
test al, al
js 0x45d8e3
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], ecx
test eax, 0x100
je 0x45d6ad
test edx, edx
jne 0x4afc1f
test edi, edi
jne 0x4afc1f
push 0
push 0x30
call fcn.0045dc04
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x45d915
mov eax, dword [esp + 0x1c]
mov byte [esi + 8], bl
mov dword [esi], eax
mov dword [esi + 0x20], esi
mov dword [esi + 0x24], 1
test edi, edi
jne 0x45d6f1
mov eax, dword [ebp + 0x14]
cmp dword [esp + 0x30], ebx
jne 0x4afc31
test eax, 0x20000
jne 0x4afc3e
push 0
push 0x54
call fcn.0045dc04
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4afe72
push ecx
push dword [ebp + 0x14]
mov edx, edi
push dword [esp + 0x18]
push ecx
push dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
call fcn.0045ddd0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4aff93
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi]
mov eax, dword [edx + 0x30]
mov edx, dword [edx + 0x34]
mov dword [ecx + 0x80], eax
mov dword [ecx + 0x84], edx
call fcn.0045f2e2
mov ecx, dword [edi]
lea eax, [esp + 0x38]
push eax
call fcn.0047fdc1
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4aff93
mov eax, dword [esp + 0x10]
mov byte [edi + 0x10], al
mov eax, dword [esp + 0x1c]
mov dword [edi + 4], eax
mov eax, dword [edi]
lea ecx, [eax + 0xb0]
mov dword [eax + 0xb4], edi
mov eax, dword [eax + 0x3c]
mov dword [ecx], 0x4f8fb1
mov edx, dword [eax]
test edx, edx
je 0x45d794
push ecx
push 0xf
push eax
call dword [edx + 0x28]
add esp, 0xc
mov dword [esi + 4], edi
mov ebx, dword [edi]
and dword [edi + 8], 0
and dword [edi + 0xc], 0
cmp byte [ebx + 0xe], 0
jne 0x4afe7a
movzx ecx, byte [esp + 0x49]
lea edx, [edi + 0x20]
movzx eax, byte [esp + 0x48]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov dword [edx], ecx
cmp ecx, 0x200
jb 0x45d8f4
cmp ecx, 0x10000
ja 0x45d8f4
lea eax, [ecx - 1]
test ecx, eax
jne 0x45d8f4
mov cl, byte [esp + 0x4c]
push 2
pop eax
or word [edi + 0x16], ax
mov eax, dword [esp + 0x6c]
bswap eax
test eax, eax
setne al
mov byte [edi + 0x11], al
mov eax, dword [esp + 0x78]
bswap eax
test eax, eax
setne al
mov byte [edi + 0x12], al
movzx eax, cl
mov ecx, ebx
push eax
mov dword [esp + 0x14], eax
call fcn.0045f1b7
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4aff93
mov eax, dword [edi + 0x20]
sub eax, dword [esp + 0x10]
mov dword [edi + 0x24], eax
xor eax, eax
inc eax
mov dword [edi + 0x40], eax
cmp byte [esi + 9], bl
jne 0x4afe99
cmp byte [esi + 9], 0
mov eax, edi
mov dword [esp + 0x10], eax
jne 0x4aff0f
mov ecx, dword [esp + 0x34]
mov dword [ecx], esi
test ebx, ebx
jne 0x4aff85
push ebx
xor edx, edx
mov ecx, esi
call fcn.004608f8
pop ecx
test eax, eax
jne 0x45d891
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov esi, dword [eax + 0xd4]
mov ecx, esi
mov dword [esi + 0x10], 0xfffff830
call fcn.0045eedf
push eax
push dword [esi + 0x2c]
call dword [0x53a0c4]
pop ecx
pop ecx
mov eax, dword [edi]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
test edx, edx
je 0x45d8a9
lea eax, [edi + 4]
push eax
push 0x1e
push ecx
call dword [edx + 0x28]
add esp, 0xc
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4affba
mov eax, ebx
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00481a32
mov esp, ebp
pop ebp
ret
mov edi, ecx
test eax, eax
jne 0x45d64b
cmp byte [edx + 0x50], 2
jne 0x45d67e
mov eax, dword [ebp + 0x14]
mov edx, ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x10]
or ecx, 2
jmp 0x45d692
xor eax, eax
mov dword [edx], eax
cmp dword [esp + 0x20], eax
jne 0x4afe86
mov cl, al
jmp 0x45d80c
sbb eax, eax
xor ecx, ecx
inc ecx
or eax, ecx
jmp 0x45d66e
push 7
pop eax
jmp 0x45d8b7
and eax, 0xfffffeff
or eax, 0x200
mov dword [ebp + 0x14], eax
jmp 0x45d6ad
test al, 0x40
je 0x45d6f1
jmp 0x45d6e6
mov ecx, dword [esp + 0x20]
call fcn.00455372
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 8]
lea edx, [ecx + 1]
mov dword [esp + 0x18], edx
lea edi, [eax + 1]
mov dword [esp + 0x14], edi
cmp edi, edx
jg 0x4afc64
mov eax, ecx
cdq
add eax, 1
adc edx, ebx
push edx
push eax
call fcn.00459870
mov edi, eax
mov byte [esi + 9], 1
mov dword [esp + 0x30], edi
pop ecx
pop ecx
test edi, edi
jne 0x4afc88
push 7
jmp 0x4afe20
cmp dword [esp + 0x30], ebx
je 0x4afd33
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp dword [0x53a044], 0
jne 0x4afd5f
and dword [esp + 0x24], 0
xor edx, edx
mov dword [esp + 0x14], edx
mov edi, dword [0x545650]
test edi, edi
je 0x4afe4f
mov ecx, dword [esp + 0x28]
mov eax, dword [edi]
mov eax, dword [eax + 0xa8]
mov dword [esp + 0x18], eax
mov eax, ecx
mov cl, byte [eax]
mov byte [esp + 0xf], cl
mov ecx, dword [esp + 0x18]
mov dl, byte [esp + 0xf]
cmp dl, byte [ecx]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
jne 0x4afdad
cmp byte [esp + 0xf], 0
je 0x4afd2f
mov cl, byte [eax + 1]
mov byte [esp + 0xf], cl
mov ecx, dword [esp + 0x18]
mov dl, byte [esp + 0xf]
cmp dl, byte [ecx + 1]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
jne 0x4afdad
add dword [esp + 0x18], 2
add eax, 2
cmp byte [esp + 0xf], 0
jne 0x4afcdb
xor eax, eax
jmp 0x4afdb2
mov eax, dword [esp + 0x2c]
push edi
push dword [esp + 0x18]
mov byte [edi], bl
push dword [esp + 0x28]
push eax
call dword [eax + 0x24]
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4afca3
push edi
call fcn.0045984d
pop ecx
jmp 0x4afe21
push 4
call dword [0x53a094]
mov dword [esp + 0x28], eax
pop ecx
test eax, eax
je 0x4afd78
push eax
call dword [0x53a09c]
pop ecx
cmp dword [0x53a044], 0
je 0x4afcb5
push 2
call dword [0x53a094]
mov edx, eax
mov dword [esp + 0x18], edx
pop ecx
test edx, edx
je 0x4afcbb
push edx
call dword [0x53a09c]
mov edx, dword [esp + 0x18]
pop ecx
jmp 0x4afcbb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4afe2c
mov eax, dword [edi]
mov edx, dword [esp + 0x2c]
cmp dword [eax], edx
mov edx, dword [esp + 0x14]
jne 0x4afe2c
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
sub eax, 1
mov dword [esp + 0x14], eax
js 0x4afe49
mov ecx, eax
mov eax, dword [esp + 0x1c]
shl ecx, 4
mov eax, dword [eax + 0x10]
add eax, 4
add ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x4afe39
cmp dword [ecx + 4], edi
jne 0x4afe39
test edx, edx
je 0x4afe04
push edx
call dword [0x53a0a4]
pop ecx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4afe14
push eax
call dword [0x53a0a4]
pop ecx
push dword [esp + 0x28]
call fcn.0045984d
pop ecx
push 0x13
pop ebx
push esi
call fcn.0045984d
jmp 0x4affc1
mov edi, dword [edi + 0x44]
test edi, edi
jne 0x4afccd
jmp 0x4afe4f
mov ecx, dword [esp + 0x18]
sub ecx, 0x10
sub eax, 1
mov dword [esp + 0x18], ecx
jns 0x4afded
mov dword [esi + 4], edi
inc dword [edi + 0x40]
test edx, edx
je 0x4afe5b
push edx
call dword [0x53a0a4]
pop ecx
push dword [esp + 0x28]
call fcn.0045984d
pop ecx
test edi, edi
jne 0x45d83f
jmp 0x45d6f1
push 7
pop ebx
jmp 0x4affa0
xor eax, eax
inc eax
or word [edi + 0x16], ax
jmp 0x45d7ab
cmp dword [esp + 0x30], eax
jne 0x45d902
mov word [edi + 0x11], ax
jmp 0x45d902
cmp dword [0x53a044], 0
jne 0x4afea6
xor ecx, ecx
jmp 0x4afeec
push 2
pop eax
push eax
call dword [0x53a094]
cmp dword [0x53a044], 0
pop ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
je 0x4afedc
push 0
call dword [0x53a094]
mov dword [edi + 0x38], eax
pop ecx
test eax, eax
jne 0x4afed8
push 7
pop ebx
jmp 0x4aff93
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4afeec
push ecx
call dword [0x53a09c]
pop ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [0x545650]
mov dword [edi + 0x44], eax
mov dword [0x545650], edi
test ecx, ecx
je 0x45d83f
push ecx
call dword [0x53a0a4]
pop ecx
jmp 0x45d83f
mov ecx, dword [esp + 0x1c]
xor edx, edx
cmp dword [ecx + 0x14], edx
jle 0x45d84f
mov ecx, dword [ecx + 0x10]
add ecx, 4
mov eax, dword [ecx]
test eax, eax
je 0x4aff30
cmp byte [eax + 9], 0
jne 0x4aff41
mov eax, dword [esp + 0x1c]
inc edx
add ecx, 0x10
cmp edx, dword [eax + 0x14]
jl 0x4aff24
jmp 0x4aff7c
mov eax, ecx
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x4aff3f
mov edx, dword [esi + 4]
cmp edx, dword [eax + 4]
jae 0x4aff62
and dword [esi + 0x1c], ecx
mov dword [esi + 0x18], eax
mov dword [eax + 0x1c], esi
jmp 0x4aff7c
cmp dword [ecx + 4], edx
jae 0x4aff69
mov eax, ecx
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x4aff5b
mov ecx, dword [eax + 0x18]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
test ecx, ecx
je 0x4aff79
mov dword [ecx + 0x1c], esi
mov dword [eax + 0x18], esi
mov eax, dword [esp + 0x10]
jmp 0x45d84f
mov ecx, dword [esp + 0x24]
mov edi, eax
mov dword [esp + 0x24], ecx
test eax, eax
je 0x4affa0
mov ecx, dword [edi]
test ecx, ecx
je 0x4affa0
xor edx, edx
call fcn.0045f026
push edi
call fcn.0045984d
pop ecx
push esi
call fcn.0045984d
mov eax, dword [esp + 0x38]
pop ecx
and dword [eax], 0
jmp 0x45d8a9
push eax
call dword [0x53a0a4]
pop ecx
jmp 0x45d8b5