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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [ecx + 0xf8]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
push ebx
push esi
mov ebx, edx
mov dword [esp + 0x10], ecx
test byte [eax + 0x50], 1
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x3c], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0
jne 0x47bc02
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x30], eax
lea ecx, [ecx + ecx*8]
shl ecx, 3
cmp dword [ebx + 0x44], 0
mov dword [esp + 0x40], ecx
lea edi, [ecx + eax]
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x34]
mov dword [esp + 0x50], eax
lea eax, [edi + 0x1c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], eax
jne 0x47bc02
cmp dword [ecx + 0x44], 0
jne 0x47bc02
mov eax, dword [ecx + 0x3c]
mov edx, dword [ecx + 0x20]
test eax, eax
je 0x47b3d9
cmp dword [ebx + 0x3c], 0
jne 0x47bc02
cmp dword [eax + 0x10], 0
jne 0x47bc02
test dword [ebx + 4], 0x100
je 0x47b3ea
test eax, eax
jne 0x47bc02
mov esi, dword [edx]
test esi, esi
je 0x47bc02
mov edx, dword [ecx + 4]
test dl, 1
jne 0x47bc02
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x47b41f
mov edx, dword [esp + 0x30]
cmp dword [edx], 1
mov edx, dword [ecx + 4]
jg 0x47bc02
test ebx, ebx
jne 0x47bc02
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x30], 0
mov edi, dword [esp + 0x10]
je 0x47b437
cmp dword [ecx + 0x30], 0
jne 0x47bc02
test ebx, ebx
je 0x47b445
cmp dword [ecx + 0x30], 0
jne 0x47bc02
test eax, eax
je 0x47b461
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x24], 0
jne 0x47bc02
test byte [eax + 4], 1
jne 0x47bc02
test edx, 0x2000
jne 0x47bc02
mov bl, byte [edi + 0x2c]
lea eax, [edi + 0x2c]
mov dword [esp + 0x4c], eax
test bl, 0x60
je 0x47b4c0
cmp esi, 1
jg 0x47bc02
cmp dword [ebp + 0xc], 0
jne 0x47bc02
mov edx, dword [ecx + 0x20]
mov eax, dword [edx + 0x18]
cmp byte [eax + 0x2b], 1
je 0x47bc02
mov eax, dword [esp + 0x20]
test byte [eax + 4], 1
jne 0x47bc02
test bl, 0x10
jne 0x47bc02
mov dword [esp + 0x3c], 1
jmp 0x47b4c3
mov edx, dword [ecx + 0x20]
cmp dword [ebp + 8], 0
jle 0x47b4d3
test byte [edx + 0x2c], 0x40
jne 0x47bc02
mov edx, dword [edi + 0x30]
test edx, 0x100
je 0x47b4eb
mov eax, dword [edi + 0x4c]
cmp byte [eax + 0x12], 0
je 0x47bc02
cmp esi, 2
jl 0x47b528
lea eax, [esi + esi*8]
mov esi, dword [ecx + 0x20]
test byte [esi + eax*8 - 0x1c], 0x20
je 0x47b528
test bl, 4
jne 0x47bc02
test edx, 0x400
jne 0x47bc02
cmp dword [edi + 0x38], 0
jne 0x47bc02
test edx, 0x800
jne 0x47bc02
cmp dword [ecx + 0x34], 0
lea ebx, [ecx + 0x34]
mov dword [esp + 0x34], ebx
je 0x47b644
cmp dword [ecx + 0x30], 0
jne 0x47bc02
cmp dword [ebp + 0xc], 0
jne 0x47bc02
mov esi, dword [esp + 0x20]
test byte [esi + 4], 1
jne 0x47bc02
cmp dword [esp + 0x3c], 0
ja 0x47bc02
test byte [ecx + 4], 9
jne 0x47bc02
mov edx, dword [ecx + 0x34]
test edx, edx
je 0x47b580
cmp byte [ecx], 0x87
jne 0x47bc02
mov eax, dword [ecx + 0x20]
cmp dword [eax], 1
jl 0x47bc02
cmp dword [ecx + 0x44], 0
jne 0x47bc02
mov ecx, edx
test ecx, ecx
jne 0x47b566
mov eax, dword [esi + 0x30]
test eax, eax
je 0x47b5c2
mov edx, dword [eax]
test edx, edx
jle 0x47b5c2
add eax, 0x18
nop dword [eax]
cmp word [eax], 0
je 0x47bc02
inc ecx
add eax, 0x14
cmp ecx, edx
jl 0x47b5b0
test dword [esi + 4], 0x2000
jne 0x47bc02
mov eax, dword [esp + 0x30]
cmp dword [eax], 1
jle 0x47b644
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x64], 0x1f4
jg 0x47bc02
mov ecx, dword [esp + 0x1c]
test dword [ecx + 0x50], 0x800000
jne 0x47bc02
mov eax, dword [eax + 0x28]
cdq
mov esi, eax
add esi, 1
adc edx, 0
shld edx, esi, 2
push edx
shl esi, 2
push esi
call fcn.00404910
mov ebx, eax
add esp, 8
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x47b63c
push esi
push 0
push ebx
call fcn.004bb940
mov esi, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esi + 0x28]
mov dword [ebx], eax
mov ebx, dword [esp + 0x34]
jmp 0x47b648
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0xf8], ecx
mov edx, dword [eax + 0x168]
test edx, edx
je 0x47b6ba
cmp byte [eax + 0xb1], 0
jne 0x47b6ba
cmp byte [esi + 0xd0], 0
jne 0x47b6ba
push ecx
push 0
push 0
push 0
push 0x15
push dword [eax + 0x16c]
call edx
add esp, 0x18
cmp eax, 1
jne 0x47b69c
push str.not_authorized
push esi
call fcn.00407e20
mov dword [esi + 0xc], 0x17
jmp 0x47b6b7
test eax, eax
je 0x47b6ba
cmp eax, 2
je 0x47b6ba
push str.authorizer_malfunction
push esi
call fcn.00407e20
mov dword [esi + 0xc], 1
add esp, 8
mov eax, dword [esp + 0x28]
mov dword [esi + 0xf8], eax
mov esi, dword [esp + 0x2c]
push dword [edi + 0xc]
push dword [esp + 0x20]
mov eax, dword [esi]
mov dword [esp + 0x3c], eax
call fcn.004045f0
push dword [edi + 0x10]
push dword [esp + 0x28]
call fcn.004045f0
push dword [edi + 0x14]
push dword [esp + 0x30]
call fcn.004045f0
mov dword [edi + 0xc], 0
add esp, 0x18
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [esi], 0
mov eax, dword [ebx]
mov dword [esp + 0x28], eax
test eax, eax
je 0x47b82d
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x34]
mov edi, dword [edi + 0x18]
mov ebx, dword [edx + 0x30]
mov esi, dword [edx + 0x3c]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
push 0
mov dword [eax + 0x18], 0
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 0
mov dword [edx + 0x3c], 0
call fcn.00440e30
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x48], ecx
mov dword [edx + 0x3c], esi
mov dword [edx + 0x30], ebx
mov byte [edx], 0x87
mov dword [eax + 0x18], edi
test ecx, ecx
jne 0x47b787
mov eax, dword [esp + 0x38]
jmp 0x47b80d
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
inc dword [esi + 0x64]
mov eax, dword [esi + 0x64]
mov dword [ecx + 0x10], eax
test ebx, ebx
je 0x47b7fa
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x57], 0
jne 0x47b7fa
push dword [ebp + 8]
mov edx, ebx
push dword [ecx + 0x20]
mov ecx, esi
call fcn.0047b250
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x5c]
add esp, 8
mov dword [esp + 0x54], 0
xorps xmm0, xmm0
mov dword [esp + 0x68], 0
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x58], 0x47b2e0
mov dword [esp + 0x5c], fcn.00403c20
call fcn.0043bcb0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x34], eax
test eax, eax
je 0x47b808
mov dword [eax + 0x38], ecx
mov dword [ecx + 0x38], edx
mov eax, ecx
mov edi, dword [esp + 0x10]
mov dword [edx + 0x34], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x47b722
mov esi, dword [esp + 0x2c]
jmp 0x47b831
mov dword [esp + 0x10], edi
push dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
push ebx
call fcn.004045f0
add esp, 8
cmp byte [ebx + 0x57], 0
je 0x47b85a
mov eax, dword [esp + 0x34]
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x18]
test esi, esi
je 0x47b8c1
mov eax, dword [esi + 0x18]
cmp eax, 1
jne 0x47b964
mov ecx, dword [esp + 0x14]
mov edi, ecx
push 0
push 0xc
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne edi, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x47b88c
call fcn.00404910
jmp 0x47b891
call fcn.004042c0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x47b93f
mov eax, dword [edi + 0x80]
mov dword [ecx], eax
mov dword [edi + 0x80], ecx
mov dword [ecx + 4], esi
mov dword [ecx + 8], 0x452550
mov edi, dword [esp + 0x10]
mov dword [edi + 0x18], 0
mov ecx, dword [esp + 0x20]
mov ebx, ecx
mov esi, dword [esp + 0x34]
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov byte [esp + 0x1b], 0
mov al, byte [edx + eax + 0x2c]
mov edx, dword [ebx + 0x20]
and al, 0x40
mov byte [esp + 0x1a], al
mov eax, dword [esi + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
mov edi, dword [eax]
mov dword [esp + 0x28], edi
cmp ebx, ecx
jne 0x47b90c
mov ecx, dword [esp + 0x4c]
mov cl, byte [ecx]
mov byte [esp + 0x1b], cl
cmp edi, 1
jle 0x47b96d
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x14]
inc eax
push eax
lea eax, [edi - 1]
mov ecx, esi
push eax
call fcn.00459b00
mov edx, eax
add esp, 8
mov dword [esp + 0x30], edx
test edx, edx
je 0x47bb9e
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x20], edx
jmp 0x47b975
mov ecx, dword [edi]
test ecx, ecx
je 0x47b94e
cmp dword [ecx + 0x210], 0
jne 0x47b958
add dword [esi + 0x18], 0xffffffff
jne 0x47b8b6
mov edx, esi
call fcn.00452240
jmp 0x47b8b6
dec eax
mov dword [esi + 0x18], eax
jmp 0x47b8ba
test edi, edi
jle 0x47ba04
mov esi, dword [esp + 0x40]
lea edi, [eax + 8]
mov eax, dword [esp + 0x28]
add esi, edx
mov bl, byte [esp + 0x1a]
mov dword [esp + 0x24], esi
add esi, 0x2c
mov dword [esp + 0x2c], eax
test dword [esi + 4], 0x400
je 0x47b9a6
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x1c]
call fcn.004599a0
movups xmm0, xmmword [edi]
push 0x48
push 0
movups xmmword [esi - 0x24], xmm0
push edi
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi - 0x14], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esi - 4], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [esi + 0xc], xmm0
movq xmm0, qword [edi + 0x40]
movq qword [esi + 0x1c], xmm0
or byte [esi], bl
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x50], eax
call fcn.004bb940
add esp, 0xc
add esi, 0x48
add edi, 0x48
sub dword [esp + 0x2c], 1
jne 0x47b991
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
jmp 0x47ba12
mov ecx, dword [esp + 0x40]
add ecx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ecx
mov al, byte [ecx + 0x2c]
and al, 0x40
or al, byte [esp + 0x1a]
or al, byte [esp + 0x1b]
mov byte [ecx + 0x2c], al
mov edx, dword [esi + 0x30]
test edx, edx
je 0x47ba5c
test dword [ebx + 4], 0x400000
jne 0x47ba5c
xor ecx, ecx
cmp dword [edx], ecx
jle 0x47ba52
lea eax, [edx + 0x18]
nop dword [eax + eax]
xor esi, esi
lea eax, [eax + 0x14]
mov word [eax - 0x14], si
inc ecx
cmp ecx, dword [edx]
jl 0x47ba40
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x30], edx
mov dword [esi + 0x30], 0
cmp dword [esp + 0x3c], 0
mov eax, dword [esp + 0x10]
mov esi, dword [esi + 0x24]
mov dword [eax + 0x24], 0
jbe 0x47ba81
mov edx, dword [esp + 0x44]
mov ecx, esi
push 1
call fcn.00473570
add esp, 4
test esi, esi
je 0x47baa9
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x47baa6
push eax
push esi
mov esi, dword [esp + 0x1c]
mov edx, 0x2c
mov ecx, esi
call fcn.0043fc20
add esp, 8
mov dword [ebx + 0x24], eax
jmp 0x47baad
mov dword [ebx + 0x24], esi
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x57], 0
jne 0x47baf0
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x54]
mov dword [esp + 0x58], eax
mov edx, ebx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x1c]
push 0
mov dword [esp + 0x68], eax
call fcn.0047b050
add esp, 4
jmp 0x47baf4
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 4]
and eax, 0x100
or dword [ebx + 4], eax
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47bb10
mov dword [ebx + 0x3c], eax
mov dword [esi + 0x3c], 0
test edi, edi
jle 0x47bb80
mov esi, dword [esp + 0x24]
add esi, 0x40
nop dword [eax + eax]
cmp dword [esi - 0x28], 0
je 0x47bb74
xorps xmm0, xmm0
mov dword [esp + 0x70], 0
lea eax, [esi - 0x38]
movlpd qword [esp + 0x7c], xmm0
mov edx, ebx
mov dword [esp + 0x84], 0
lea ecx, [esp + 0x70]
mov dword [esp + 0x74], 0x47b190
mov dword [esp + 0x78], fcn.00403c20
mov dword [esp + 0x88], eax
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0043bcb0
add esi, 0x48
sub edi, 1
jne 0x47bb20
mov esi, dword [esp + 0x10]
mov ebx, dword [ebx + 0x34]
mov esi, dword [esi + 0x34]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], esi
test ebx, ebx
jne 0x47b8d3
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x34]
lea ecx, [esp + 0x8c]
xorps xmm0, xmm0
mov dword [esp + 0x8c], esi
mov edx, ebx
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0xa0], xmm0
mov dword [esp + 0x90], 0x448d70
mov dword [esp + 0x94], fcn.00403c20
call fcn.0043bcb0
test ebx, ebx
je 0x47bbf6
mov ecx, dword [esp + 0x1c]
mov edx, ebx
push 1
call fcn.00473050
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret