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

Disassembly:
sub esp, 0x90
mov eax, dword [0x571134]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xa0]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
mov ebp, dword [esp + 0xa0]
push esi
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x2c], edi
test ebp, ebp
je 0x49724b
cmp byte [ebp], al
je 0x49724b
xor esi, esi
jmp 0x497254
mov esi, 1
test ebp, ebp
je 0x49728d
mov ecx, str.:memory:
mov eax, ebp
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x497280
test dl, dl
je 0x49727c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x497280
add eax, 2
add ecx, 2
test dl, dl
jne 0x497260
xor eax, eax
jmp 0x497285
sbb eax, eax
or eax, 1
test eax, eax
je 0x4972a9
test esi, esi
je 0x497293
cmp byte [ebx + 0x56], 2
je 0x4972a9
mov eax, dword [esp + 0xb8]
test al, al
js 0x4972b0
mov ecx, dword [esp + 0xb4]
xor edx, edx
jmp 0x4972bf
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb4]
mov edx, 1
or ecx, 2
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], edx
test eax, 0x100
je 0x4972e7
test edx, edx
jne 0x4972d6
test esi, esi
je 0x4972e7
and eax, 0xfffffeff
or eax, 0x200
mov dword [esp + 0xb8], eax
push 0
push 0x30
call fcn.004b17f0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x497393
push 0x30
push 0
push ebx
call fcn.004fd610
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [ebx], eax
mov dword [ebx + 0x20], ebx
mov dword [ebx + 0x24], 1
test esi, esi
jne 0x4975b0
mov eax, dword [esp + 0xb8]
cmp dword [esp + 0x20], esi
je 0x497337
test al, 0x40
je 0x4975b0
test eax, 0x20000
je 0x4975b0
test ebp, ebp
jne 0x49734a
xor ecx, ecx
jmp 0x49735f
mov ecx, ebp
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497350
sub ecx, edx
and ecx, 0x3fffffff
mov eax, dword [edi + 8]
lea esi, [ecx + 1]
lea edi, [eax + 1]
cmp edi, esi
cmovg ecx, eax
mov eax, ecx
cdq
add eax, 1
adc edx, 0
push edx
push eax
call fcn.004b17f0
mov ebp, eax
mov byte [ebx + 9], 1
add esp, 8
test ebp, ebp
jne 0x4973b1
push ebx
call fcn.00451030
add esp, 4
mov eax, 7
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fb4f7
add esp, 0x90
ret
cmp dword [esp + 0x20], 0
je 0x4973de
push esi
push dword [esp + 0x20]
push ebp
call fcn.004fd090
add esp, 0xc
cmp byte [0x56f0fc], 0
jne 0x497425
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
jmp 0x497472
mov eax, dword [esp + 0x2c]
push ebp
push edi
push dword [esp + 0x24]
mov byte [ebp], 0
push eax
mov eax, dword [eax + 0x24]
call eax
mov esi, eax
add esp, 0x10
mov dword [esp + 0x10], esi
test esi, esi
je 0x4973c6
cmp esi, 0x200
jne 0x49740f
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x4973c6
push ebp
call fcn.00451030
push ebx
call fcn.00451030
add esp, 8
mov eax, esi
jmp 0x497398
push 4
call dword [0x56f140]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x497442
push eax
call dword [0x56f148]
add esp, 4
cmp byte [0x56f0fc], 0
jne 0x497455
mov dword [esp + 0x28], 0
jmp 0x497472
push 2
call dword [0x56f140]
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
je 0x497472
push eax
call dword [0x56f148]
add esp, 4
mov edi, dword [0x575164]
test edi, edi
je 0x4974fc
mov esi, dword [edi]
mov eax, ebp
mov ecx, dword [esi + 0xb8]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4974b0
test dl, dl
je 0x4974ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4974b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x497490
xor eax, eax
jmp 0x4974b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4974c1
mov eax, dword [esp + 0x2c]
cmp dword [esi], eax
je 0x4974ca
mov edi, dword [edi + 0x48]
test edi, edi
jne 0x497480
jmp 0x4974fc
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x14]
sub edx, 1
js 0x4974f6
mov eax, dword [eax + 0x10]
mov ecx, edx
shl ecx, 4
add eax, 4
add ecx, eax
mov eax, dword [ecx]
test eax, eax
je 0x4974ee
cmp dword [eax + 4], edi
je 0x49755d
sub ecx, 0x10
sub edx, 1
jns 0x4974e3
mov dword [ebx + 4], edi
inc dword [edi + 0x44]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49750e
push eax
call dword [0x56f150]
add esp, 4
cmp dword [0x56f0f8], 0
je 0x49759a
mov eax, dword [0x574ff8]
test eax, eax
je 0x49752e
push eax
call dword [0x56f148]
add esp, 4
push ebp
call dword [0x56f124]
sub dword [0x574f98], eax
dec dword [0x574fbc]
push ebp
call dword [0x56f11c]
mov eax, dword [0x574ff8]
add esp, 8
test eax, eax
je 0x4975a4
push eax
call dword [0x56f150]
jmp 0x4975a1
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49756f
push eax
call dword [0x56f150]
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x497581
push eax
call dword [0x56f150]
add esp, 4
push ebp
call fcn.00451030
push ebx
call fcn.00451030
add esp, 8
mov eax, 0x13
jmp 0x497398
push ebp
call dword [0x56f11c]
add esp, 4
test edi, edi
jne 0x49786a
mov ebp, dword [esp + 0x1c]
xorps xmm0, xmm0
push 0
push 0x5c
movq qword [esp + 0x50], xmm0
call fcn.004b17f0
mov edi, eax
add esp, 8
test edi, edi
je 0x4979ff
push 0x5c
push 0
push edi
call fcn.004fd610
push 0x4836f0
push dword [esp + 0xc8]
push dword [esp + 0x44]
push 0x54
push ebp
push edi
push dword [esp + 0x50]
call fcn.004b3030
mov ecx, eax
add esp, 0x28
mov dword [esp + 0x10], ecx
mov esi, edi
test ecx, ecx
jne 0x4977c9
mov edx, dword [edi]
mov ebp, dword [esp + 0x24]
push edx
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x34]
mov dword [edx + 0x88], eax
mov dword [edx + 0x8c], ecx
call fcn.00483890
mov esi, dword [edi]
xor eax, eax
push 0x64
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x44]
push eax
call fcn.004fd610
mov eax, dword [esi + 0x40]
add esp, 0x10
mov ecx, dword [eax]
test ecx, ecx
je 0x49766c
push 0
push 0
push 0x64
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x10], ecx
cmp ecx, 0x20a
je 0x497678
jmp 0x49766e
xor ecx, ecx
mov esi, edi
test ecx, ecx
jne 0x4977c9
mov eax, dword [esp + 0x30]
mov byte [edi + 0x10], al
mov eax, dword [edi]
mov dword [edi + 4], ebp
mov dword [eax + 0xc0], 0x462280
lea ecx, [eax + 0xc0]
mov dword [eax + 0xc4], edi
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
test edx, edx
je 0x4976af
push ecx
push 0xf
push eax
mov eax, dword [edx + 0x28]
call eax
add esp, 0xc
mov dword [ebx + 4], edi
mov edx, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
cmp byte [edx + 0xe], 0
je 0x4976cd
or word [edi + 0x18], 1
movzx ecx, byte [esp + 0x49]
lea ebp, [edi + 0x24]
movzx eax, byte [esp + 0x48]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov dword [ebp], ecx
cmp ecx, 0x200
jb 0x497723
cmp ecx, 0x10000
ja 0x497723
lea eax, [ecx - 1]
test ecx, eax
jne 0x497723
mov cl, byte [esp + 0x4c]
or word [edi + 0x18], 2
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
jmp 0x497740
cmp dword [esp + 0x1c], 0
mov dword [ebp], 0
je 0x49773e
cmp dword [esp + 0x20], 0
jne 0x49773e
mov word [edi + 0x11], 0
xor cl, cl
movzx eax, cl
push eax
push ebp
push edx
mov dword [esp + 0x3c], eax
call fcn.004b3c40
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x10], ecx
mov esi, edi
test ecx, ecx
jne 0x4977c9
mov eax, dword [ebp]
sub eax, dword [esp + 0x30]
mov dword [edi + 0x28], eax
mov dword [edi + 0x44], 1
cmp byte [ebx + 9], cl
je 0x49786e
cmp byte [0x56f0fc], cl
jne 0x497793
mov eax, dword [0x575164]
mov dword [edi + 0x48], eax
mov dword [0x575164], edi
jmp 0x49786e
push 2
call dword [0x56f140]
add esp, 4
mov esi, eax
cmp byte [0x56f0fc], 0
je 0x497837
push 0
call dword [0x56f140]
add esp, 4
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x497837
mov dword [esp + 0x10], 7
mov esi, edi
mov ebp, dword [esp + 0x14]
mov eax, dword [esi]
test eax, eax
je 0x4977de
push 0
push eax
call fcn.004b29c0
add esp, 8
cmp dword [0x56f0f8], 0
je 0x4979f3
mov eax, dword [0x574ff8]
test eax, eax
je 0x4977fe
push eax
call dword [0x56f148]
add esp, 4
push esi
call dword [0x56f124]
sub dword [0x574f98], eax
dec dword [0x574fbc]
push esi
call dword [0x56f11c]
mov eax, dword [0x574ff8]
add esp, 8
test eax, eax
je 0x497a0b
push eax
call dword [0x56f150]
add esp, 4
jmp 0x497a0b
test esi, esi
je 0x49785c
push esi
call dword [0x56f148]
mov eax, dword [0x575164]
push esi
mov dword [edi + 0x48], eax
mov dword [0x575164], edi
call dword [0x56f150]
add esp, 8
jmp 0x49786a
mov eax, dword [0x575164]
mov dword [edi + 0x48], eax
mov dword [0x575164], edi
mov ecx, dword [esp + 0x10]
cmp byte [ebx + 9], 0
mov esi, edi
je 0x4978fc
mov eax, dword [esp + 0x24]
xor edx, edx
mov ebp, dword [eax + 0x14]
test ebp, ebp
jle 0x4978fc
mov ecx, dword [eax + 0x10]
add ecx, 4
nop dword [eax]
mov eax, dword [ecx]
test eax, eax
je 0x49789c
cmp byte [eax + 9], 0
jne 0x4978a6
inc edx
add ecx, 0x10
cmp edx, ebp
jl 0x497890
jmp 0x4978f8
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4978b9
nop dword [eax]
mov eax, ecx
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x4978b0
mov edx, dword [ebx + 4]
cmp edx, dword [eax + 4]
jae 0x4978d0
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 0
mov dword [eax + 0x1c], ebx
jmp 0x4978f8
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4978e5
cmp dword [ecx + 4], edx
jae 0x4978e5
mov eax, ecx
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x4978d7
mov ecx, dword [eax + 0x18]
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], eax
test ecx, ecx
je 0x4978f5
mov dword [ecx + 0x1c], ebx
mov dword [eax + 0x18], ebx
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov dword [ebp], ebx
test ecx, ecx
je 0x497920
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
test esi, esi
jne 0x4977cd
jmp 0x497a0b
mov al, byte [ebx + 9]
mov esi, dword [ebx + 4]
test al, al
je 0x497952
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x497943
push ebx
call fcn.00462350
mov al, byte [ebx + 9]
add esp, 4
test al, al
je 0x497952
add dword [ebx + 0xc], 0xffffffff
jne 0x497952
push ebx
call fcn.004e0290
add esp, 4
cmp dword [esi + 0x34], 0
jne 0x4979d3
cmp byte [ebx + 9], 0
mov esi, dword [ebx + 4]
je 0x497973
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x497973
push ebx
call fcn.00462350
add esp, 4
mov eax, dword [esi]
mov esi, dword [eax + 0xe4]
mov eax, dword [esi + 0x24]
add eax, dword [esi + 0x20]
cdq
push edx
push eax
push 0
push 0x1f4000
mov dword [esi + 0x18], 0xfffff830
call fcn.004fc180
test edx, edx
jl 0x4979b1
jg 0x4979a4
cmp eax, 0x3b9aca00
jbe 0x4979b1
mov eax, 0x3b9aca00
mov dword [esp + 0x34], 0
push eax
push dword [esi + 0x34]
call dword [0x56f170]
add esp, 8
cmp byte [ebx + 9], 0
je 0x4979d3
add dword [ebx + 0xc], 0xffffffff
jne 0x4979d3
push ebx
call fcn.004e0290
add esp, 4
mov eax, dword [edi]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx]
test edx, edx
je 0x497a67
lea eax, [edi + 4]
push eax
mov eax, dword [edx + 0x28]
push 0x1e
push ecx
call eax
add esp, 0xc
jmp 0x497a67
push esi
call dword [0x56f11c]
add esp, 4
jmp 0x497a0b
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], 7
cmp dword [0x56f0f8], 0
je 0x497a56
mov eax, dword [0x574ff8]
test eax, eax
je 0x497a27
push eax
call dword [0x56f148]
add esp, 4
push ebx
call dword [0x56f124]
sub dword [0x574f98], eax
dec dword [0x574fbc]
push ebx
call dword [0x56f11c]
mov eax, dword [0x574ff8]
add esp, 8
test eax, eax
je 0x497a60
push eax
call dword [0x56f150]
jmp 0x497a5d
push ebx
call dword [0x56f11c]
add esp, 4
mov dword [ebp], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x497a79
push eax
call dword [0x56f150]
add esp, 4
mov eax, dword [esp + 0x10]
jmp 0x497398