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

Disassembly:
sub esp, 0x11c
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x128]
push ebx
mov ebx, dword [esp + 0x124]
push esi
push edi
mov edi, dword [esp + 0x130]
mov dword [esp + 0x30], eax
movzx eax, word [esp + 0x138]
mov dword [esp + 0x14], edi
cmp dword [edi], 0
mov dword [esp + 0x18], eax
je 0x50d0ff
cmp dword [edi + 4], 0
je 0x50d0ff
mov eax, dword [0x931810]
lea esi, [esp + 0x114]
movq xmm0, qword [0x931808]
lea ecx, [esi + 1]
mov dword [esp + 0x11c], eax
mov al, byte [0x931814]
movq qword [esp + 0x114], xmm0
mov byte [esp + 0x120], al
mov al, byte [esi]
inc esi
test al, al
jne 0x50c536
mov eax, dword [ebx + 8]
sub esi, ecx
mov ecx, dword [ebx + 0xc]
sub eax, ecx
cmp esi, eax
jbe 0x50c55d
push esi
lea eax, [esp + 0x118]
mov ecx, ebx
push eax
call fcn.0041214d
jmp 0x50c576
test esi, esi
je 0x50c576
push esi
lea eax, [esp + 0x118]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [ebx + 0xc], esi
mov esi, dword [esp + 0x140]
mov ecx, ebx
lea eax, [esi + 2]
push eax
call fcn.0040e444
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.0040ab96
lea ecx, [esp + 0xa0]
mov eax, dword [eax + 4]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x1f]
mov dword [esp + 0x8c], 0x930a94
push eax
mov dword [esp + 0x94], 3
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], 1
mov dword [esp + 0xa0], 0x9317e8
call fcn.004028ec
add esp, 0x10
mov dword [esp + 0x98], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x68], 0x9272e4
push 0
push 3
push ebx
call fcn.0040d995
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [eax]
call fcn.004027ed
lea ecx, [esp + 0x20]
call fcn.0040d18e
cmp byte [esp + 0x158], 0
jne 0x50c63d
cmp byte [esp + 0x156], 0
je 0x50c6c6
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.0040ad44
lea ecx, [esp + 0xa0]
mov eax, dword [eax + 4]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x1f]
mov dword [esp + 0x8c], str.__0_
push eax
mov dword [esp + 0x94], 6
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], 1
mov dword [esp + 0xa0], 0x9317f8
call fcn.004135de
add esp, 0x10
mov dword [esp + 0x98], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x68], 0x9272e4
mov ecx, ebx
push eax
call fcn.004027ed
push dword [esp + 0x30]
mov edi, dword [edi]
lea eax, [esp + 0x44]
push edi
push dword [esp + 0x144]
mov dword [esp + 0x74], edi
push eax
call fcn.00407d0b
mov eax, dword [ebx + 8]
add esp, 0x10
mov ecx, dword [ebx + 0xc]
sub eax, ecx
cmp eax, 2
jae 0x50c702
push 2
push 0x931820
mov ecx, ebx
call fcn.0041214d
jmp 0x50c70f
mov ax, word [0x931820]
mov word [ecx], ax
add dword [ebx + 0xc], 2
mov eax, dword [esp + 0x18]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0x30], 4
cmp ax, 0x3a
je 0x50c780
cmp ax, 0x58
je 0x50c780
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
call fcn.0040d17f
cmp byte [esp + 0x28], 0
je 0x50c9cb
push dword [esp + 0x20]
lea eax, [esp + 0x6c]
push dword [esp + 0x1c]
push eax
call fcn.0040a5c4
add esp, 0xc
mov ecx, dword [eax]
mov esi, dword [eax + 4]
jmp 0x50c964
mov ecx, dword [edi + 8]
push edi
mov dword [esp + 0x34], 1
call fcn.0040eb51
mov dword [esp + 0xc], eax
test eax, eax
je 0x50c9cb
mov ecx, edi
call fcn.0040a1fa
mov dword [esp + 0x1c], eax
test eax, eax
je 0x50c7bc
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x50c7b1
sub esi, ecx
jmp 0x50c7be
xor esi, esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
call fcn.0040d17f
push 2
lea ecx, [esp + 0xac]
push ecx
mov ecx, dword [esp + 0x14]
push 4
push esi
push dword [esp + 0x2c]
add ecx, 8
push dword [eax + 4]
push dword [eax]
call fcn.004036c0
test al, al
je 0x50c9c4
mov edx, dword [esp + 0xb8]
mov dword [esp + 0xc], edx
cmp edx, 0x7fffffff
je 0x50d162
cmp dword [esp + 0xbc], 0x10
lea eax, [esp + 0xa8]
lea ecx, [edx + 1]
mov dword [esp + 0x80], 0
cmovae eax, dword [esp + 0xa8]
lea edi, [esp + 0x80]
mov esi, 0xf
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
cmp ecx, esi
jbe 0x50c8ac
mov esi, ecx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x50c861
mov esi, SysReAllocString
lea eax, [esi + 1]
jmp 0x50c875
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x50c88a
push eax
call fcn.00404818
mov ecx, dword [esp + 0x20]
add esp, 4
mov edx, dword [esp + 0xc]
mov edi, eax
jmp 0x50c8a5
test eax, eax
je 0x50c8a3
push eax
call fcn.00405e93
mov ecx, dword [esp + 0x20]
add esp, 4
mov edx, dword [esp + 0xc]
mov edi, eax
jmp 0x50c8a5
xor edi, edi
mov dword [esp + 0x80], edi
push edx
push dword [esp + 0x24]
lea eax, [edi + 1]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], esi
push eax
mov byte [edi], 0x22
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x8c]
add esp, 0xc
mov byte [edi + eax + 1], 0
push 0x22
call fcn.0040d576
mov edx, dword [esp + 0xbc]
cmp edx, 0x10
jb 0x50c921
mov ecx, dword [esp + 0xa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50c917
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50d0d1
push edx
push ecx
call fcn.004036ca
add esp, 8
movups xmm1, xmmword [esp + 0x80]
cmp dword [esp + 0x94], 0x10
lea ecx, [esp + 0xa8]
movq xmm0, qword [esp + 0x90]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x68]
movd eax, xmm1
movups xmmword [esp + 0xa8], xmm1
movq qword [esp + 0xb8], xmm0
cmovae ecx, eax
mov dword [esp + 0xc], ecx
test esi, esi
je 0x50c9c4
push 0
push dword [esp + 0x34]
lea ecx, [esp + 0x28]
push ebx
call fcn.0040d995
push esi
push dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [esp + 0x70], ecx
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
sub eax, edx
cmp esi, eax
jbe 0x50c9a6
call fcn.0041214d
lea ecx, [esp + 0x20]
call fcn.0040d18e
jmp 0x50cb23
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x2c]
add esp, 0xc
add dword [eax + 0xc], esi
call fcn.0040d18e
jmp 0x50cb23
mov esi, dword [esp + 0x140]
mov eax, dword [esp + 0x18]
cmp ax, 0x3b
je 0x50cb09
cmp ax, 0x59
je 0x50cb09
cmp ax, 0x12
jne 0x50caa6
cmp byte [esp + 0x156], 0
jne 0x50caa6
cmp byte [esp + 0x158], 0
jne 0x50caa6
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x44]
call fcn.0040d17f
cmp byte [eax + 8], 0
je 0x50caa2
cmp byte [esp + 0x153], 0
je 0x50cb23
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00405236
test al, al
je 0x50ca7e
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, ebx
push eax
mov dword [esp + 0x28], str.0x_016llx
mov dword [esp + 0x24], 0x92fa18
call fcn.0040c69e
jmp 0x50cb27
sub esp, 0x68
lea eax, [esp + 0x1ac]
mov ecx, esp
push eax
call fcn.00410843
push ebx
lea ecx, [esp + 0xac]
call fcn.0040bbfe
jmp 0x50cb27
mov eax, dword [esp + 0x18]
cmp word [esp + 0x13c], 0x18
je 0x50cadf
push eax
call fcn.00404bdd
add esp, 4
test al, al
jne 0x50cadf
sub esp, 0x68
lea eax, [esp + 0x1ac]
mov ecx, esp
push eax
call fcn.00410843
push ebx
lea ecx, [esp + 0xac]
call fcn.0040bbfe
jmp 0x50cb23
sub esp, 0x68
lea eax, [esp + 0x1ac]
mov ecx, esp
push eax
call fcn.00410843
lea eax, [esi + 0x11]
push eax
push edi
lea eax, [esp + 0xb0]
push eax
push ebx
call fcn.0050d4a0
add esp, 0x78
jmp 0x50cb23
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x44]
call fcn.0040d17f
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
call fcn.0040b5be
mov esi, dword [esp + 0x14]
cmp byte [esp + 0x153], 0
mov eax, 0x9236bc
mov edx, 0x925080
mov dword [esp + 0xc0], 0
cmove edx, eax
mov dword [esp + 0xd0], 0
mov ecx, edx
mov dword [esp + 0xd4], 0xf
lea eax, [ecx + 1]
mov dword [esp + 0x68], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50cb66
sub ecx, dword [esp + 0x68]
push ecx
push edx
lea ecx, [esp + 0xc8]
call fcn.00408698
mov eax, dword [esp + 0x18]
cmp ax, 0x47
je 0x50cf50
cmp ax, 0x31
je 0x50cf50
cmp ax, 0x49
jne 0x50cc2c
cmp dword [esp + 0xd4], 0x10
lea eax, [esp + 0xc0]
push dword [esp + 0xd0]
cmovae eax, dword [esp + 0xc4]
mov ecx, ebx
push eax
call fcn.0041214d
mov edx, eax
mov ecx, dword [edx + 8]
mov edi, dword [edx + 0xc]
sub ecx, edi
cmp ecx, 1
jae 0x50cbe6
push 1
push 0x9257e4
mov ecx, edx
call fcn.0041214d
jmp 0x50cbf0
mov al, byte [0x9257e4]
mov byte [edi], al
inc dword [edx + 0xc]
lea eax, [esp + 0x40]
mov ecx, esi
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.00409b42
push eax
push ebx
call fcn.0050d980
mov eax, dword [ebx + 0xc]
add esp, 8
cmp eax, dword [ebx + 8]
jb 0x50cc21
push 0x22
mov ecx, ebx
call fcn.0040c4b4
jmp 0x50d023
mov byte [eax], 0x22
inc dword [ebx + 0xc]
jmp 0x50d023
mov ecx, 0x3feb
cmp ax, cx
jne 0x50cc65
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x44]
call fcn.0040d17f
cmp byte [esp + 0x70], 0
je 0x50d023
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push ebx
call fcn.0050bdb0
add esp, 0xc
jmp 0x50d023
cmp ax, 0x55
jne 0x50d023
cmp word [esp + 0x40], 0x23
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x168]
mov dword [esp + 0x68], eax
jne 0x50cd05
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
call fcn.00413b2e
cmp byte [edi + 0x118], 0
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
je 0x50cd05
mov eax, dword [edi + 0xe4]
mov edx, dword [edi + 0xe0]
sub eax, edx
sar eax, 3
cmp ecx, eax
jae 0x50cd05
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 0x68]
mov esi, dword [esp + 0x30]
add ecx, dword [edx + eax*8]
mov eax, dword [edi + 0x6c]
adc eax, dword [edx + esi*8 + 4]
push eax
push ecx
lea eax, [esp + 0x88]
push 0x17
push eax
call fcn.0040a538
sub esp, 0x58
lea eax, [esp + 0x1ac]
mov ecx, esp
push eax
call fcn.00410843
push ebx
lea ecx, [esp + 0xec]
call fcn.0040bbfe
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00414ef7
mov al, byte [esp + 0x3c]
not al
test al, 1
je 0x50cd53
lea eax, [esp + 0x144]
push eax
mov eax, dword [esp + 0x144]
add eax, 0x11
push eax
movzx eax, byte [edi + 0x1a]
push eax
lea eax, [esp + 0x3c]
push eax
push ebx
push dword [esp + 0x7c]
call fcn.0050d830
add esp, 0x18
lea ecx, [esp + 0x30]
call fcn.0040796e
jmp 0x50d023
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
call fcn.004022ed
lea eax, [esp + 0xe4]
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd8], eax
lea eax, [esp + 0xd8]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, esp
mov dword [esp + 0xe8], 2
mov dword [ecx], eax
call fcn.0040fce0
mov ecx, dword [esp + 0xe4]
add esp, 8
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x68], 0
mov dword [esp + 0x78], 0
lea eax, [ecx + ecx*2]
mov dword [esp + 0x7c], 0xf
lea edi, [esi + eax*8]
cmp esi, edi
je 0x50ce6c
mov ecx, edi
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
mov eax, esi
sar edx, 2
mov ecx, edx
dec edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esi + 0x10]
add eax, 0x18
add ecx, edx
cmp eax, edi
jne 0x50cdf5
push ecx
lea ecx, [esp + 0x6c]
call fcn.0040e09d
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x50ce12
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [esp + 0x6c]
push eax
call fcn.004070e5
add esi, 0x18
cmp esi, edi
je 0x50ce5e
nop word [eax + eax]
push 1
push 0x92406c
lea ecx, [esp + 0x70]
call fcn.004070e5
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x50ce4a
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [esp + 0x6c]
push eax
call fcn.004070e5
add esi, 0x18
cmp esi, edi
jne 0x50ce30
mov ecx, dword [esp + 0xdc]
mov esi, dword [esp + 0xd8]
movups xmm0, xmmword [esp + 0x68]
lea eax, [ecx + ecx*2]
lea eax, [esi + eax*8]
movups xmmword [esp + 0x80], xmm0
push eax
movq xmm0, qword [esp + 0x7c]
push esi
movq qword [esp + 0x98], xmm0
call fcn.0040c8b5
mov eax, dword [esp + 0xe0]
lea ecx, [esp + 0xec]
add esp, 8
cmp eax, ecx
je 0x50ceb4
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [esp + 0x94], 0x10
lea eax, [esp + 0x80]
push ecx
cmovae eax, dword [esp + 0x84]
mov edi, esp
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
push eax
push str.decoding_address_ranges:__s
sub esp, 8
mov esi, esp
call fcn.00415dfc
push edi
mov dword [esi], 0x16
mov dword [esi + 4], eax
call fcn.004076fd
add esp, 0x14
lea ecx, [esp + 0x160]
call fcn.004084db
mov edx, dword [esp + 0x94]
cmp edx, 0x10
jb 0x50cf42
mov ecx, dword [esp + 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50cf38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x50cf38
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004036ca
add esp, 8
lea ecx, [esp + 0x30]
call fcn.0040796e
jmp 0x50d023
push 2
lea eax, [esp + 0x44]
mov ecx, esi
push eax
lea eax, [esp + 0x70]
push eax
call fcn.00409b42
mov ecx, eax
call fcn.00402126
mov esi, eax
mov dword [esp + 0x30], esi
test esi, esi
je 0x50d023
cmp dword [esp + 0xd4], 0x10
lea ecx, [esp + 0xc0]
push dword [esp + 0xd0]
cmovae ecx, dword [esp + 0xc4]
push ecx
mov ecx, ebx
call fcn.0041214d
mov edi, eax
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
sub eax, ecx
cmp eax, 1
jae 0x50cfbf
push 1
push 0x9257e4
mov ecx, edi
call fcn.0041214d
mov edi, eax
jmp 0x50cfc9
mov al, byte [0x9257e4]
mov byte [ecx], al
inc dword [edi + 0xc]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x50cfd0
mov eax, dword [edi + 8]
sub esi, ecx
mov ecx, dword [edi + 0xc]
sub eax, ecx
cmp esi, eax
jbe 0x50cff5
push esi
push dword [esp + 0x34]
mov ecx, edi
call fcn.0041214d
mov edi, eax
jmp 0x50d00a
test esi, esi
je 0x50d00a
push esi
push dword [esp + 0x34]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [edi + 0xc], esi
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 8]
jb 0x50d01d
push 0x22
mov ecx, edi
call fcn.0040c4b4
jmp 0x50d023
mov byte [eax], 0x22
inc dword [edi + 0xc]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
sub eax, ecx
cmp eax, 2
jae 0x50d040
push 2
push 0x924fd8
mov ecx, ebx
call fcn.0041214d
jmp 0x50d04d
mov ax, word [0x924fd8]
mov word [ecx], ax
add dword [ebx + 0xc], 2
mov edx, dword [esp + 0xd4]
cmp edx, 0x10
jb 0x50d085
mov ecx, dword [esp + 0xc0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50d07b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50d0d1
push edx
push ecx
call fcn.004036ca
add esp, 8
mov edx, dword [esp + 0xbc]
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0xf
mov byte [esp + 0xc0], 0
cmp edx, 0x10
jb 0x50d0e1
mov ecx, dword [esp + 0xa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50d0d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x50d0d7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004036ca
add esp, 8
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0xf
mov byte [esp + 0xa8], 0
mov ecx, dword [esp + 0x1a8]
test ecx, ecx
je 0x50d12a
mov edx, dword [ecx]
lea eax, [esp + 0x184]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esp + 0x1a8], 0
mov ecx, dword [esp + 0x180]
test ecx, ecx
je 0x50d14a
mov edx, dword [ecx]
lea eax, [esp + 0x15c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x11c
ret
call fcn.0040a7a9
int3