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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov eax, dword [ebp + 0x10]
movzx ebx, byte [edx + 0x138]
mov dword [esp + 0x4c], ecx
lea ecx, [edx + 0xa8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 0x8c], ecx
mov eax, dword [eax]
mov dword [esp + 0x80], eax
lea eax, [eax + 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
nop word [eax + eax]
cmp bl, 0x4c
jne 0x47a477
mov ebx, dword [esp + 0xc]
test byte [ebx], 1
je 0x47a4c8
mov edi, dword [ebx + 0xe0]
test edi, edi
je 0x47a0cd
mov eax, dword [ebx + 0xe4]
mov dword [esp + 0x88], eax
mov ecx, dword [ebx + 0xc0]
mov eax, dword [ebx + 0xf0]
movsd xmm0, qword [ebx + 8]
mov edx, dword [ebx + 0xc4]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x54], edx
add eax, 8
lea edx, [esp + 0x50]
movaps xmmword [esp + 0x90], xmm0
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x7c], 0
call fcn.00472580
movzx eax, byte [esp + 0x10]
cmp al, 0x4b
jne 0x47a2a0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x47a2c7
cmp word [ebx + 0xca], 5
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x64]
mov esi, eax
mov ecx, 0x76
mov eax, 0x2130
cmovb ecx, eax
mov dword [esp + 8], ecx
push dword [esp + 0x68]
call fcn.004bad60
mov ecx, esi
add esp, 4
mov dword [esp + 0x38], esi
mov ebx, eax
test edx, edx
lea esi, [esp + 0x60]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], esi
je 0x47a2d2
mov esi, edx
add ebx, 0x10
dec esi
nop dword [eax + eax]
cmp esi, 0xffffffff
je 0x47a2eb
lea eax, [ebx - 0x10]
lea ecx, [esp + 0x10]
lea edi, [esp + 0xa8]
lea edx, [esp + 0x38]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov eax, dword [esp + 0x48]
movsd qword [esp + 0xb0], xmm1
movsd qword [esp + 0xa8], xmm0
mov eax, dword [eax + 0xc]
push edi
push dword [eax + 0x20]
call fcn.0046f990
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, eax
xor edx, 0x2e
or edx, ecx
je 0x47a3c2
mov edx, dword [esp + 0x18]
movzx edi, word [esp + 0x20]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], esi
add ebx, 0x10
dec esi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x1c]
cmp di, word [esp + 8]
mov edi, dword [esp + 0x22]
mov dword [esp + 4], edx
movzx edx, word [esp + 0x26]
jne 0x47a1a0
mov word [esp + 0x26], dx
mov dword [esp + 0x22], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x38]
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
mov word [esp + 0x20], ax
call fcn.00471a70
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, edi
mov dword [esp + 0x28], eax
shld edi, ebx, 0x10
mov dword [esp + 4], ebx
mov al, bh
mov ebx, dword [esp + 0xc]
mov dword [esp + 8], ecx
shr edx, 0x10
jmp 0x47a315
movzx ecx, word [esp + 0x16]
mov edi, dword [esp + 0x18]
movzx edx, byte [esp + 0x11]
mov esi, dword [esp + 0x12]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], edi
mov dword [esp + 8], ecx
jmp 0x47a400
mov edx, dword [esp + 0x34]
mov al, 0x42
jmp 0x47a400
test byte [esp + 0x74], 1
jne 0x47a305
sub ecx, dword [esp + 0x60]
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], ecx
jmp 0x47a305
mov eax, dword [esp + 0x48]
test byte [eax + 0x14], 1
jne 0x47a305
mov ecx, dword [esp + 0x38]
sub ecx, dword [eax]
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], ecx
mov ebx, dword [esp + 0xc]
mov cl, 0x2e
xor eax, eax
xor edx, edx
xor edi, edi
mov dword [esp + 4], ecx
movzx esi, al
mov dword [esp + 0x34], eax
movzx eax, byte [esp + 4]
mov ecx, edi
mov dword [esp + 4], edx
shld edx, edi, 0x10
shl ecx, 0x10
shl esi, 8
mov dword [esp + 0x14], edx
or esi, ecx
mov ecx, dword [esp + 0x28]
or eax, esi
mov dword [esp + 0x10], eax
xor eax, 0x2e
or eax, edx
mov eax, dword [esp + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
je 0x47a55d
movzx eax, byte [ebx + 0xc9]
mov edx, dword [esp + 0x2c]
lea esi, [esp + 0x10]
lea ecx, [esp + 0x50]
push esi
push dword [ebx + 0xf4]
push eax
call fcn.00475b70
add esp, 0xc
movzx eax, byte [esp + 0x50]
cmp al, 0x4b
je 0x47a561
movzx edx, byte [esp + 0x53]
mov esi, dword [esp + 0x58]
movzx ecx, word [esp + 0x51]
shl edx, 0x10
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x5c]
or ecx, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x90], esi
mov esi, edi
movzx ebx, byte [ebx + 0x138]
cmp bl, 0x4c
jne 0x47a0a0
jmp 0x47a439
movzx edi, word [esp + 0x26]
mov edx, dword [esp + 0x22]
movzx ecx, word [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
shld edi, edx, 0x10
shl edx, 0x10
or edx, ecx
mov dword [esp + 8], edi
mov dword [esp + 0x28], edx
mov edx, esi
shld esi, eax, 0x10
shr edx, 0x10
mov dword [esp + 4], edx
mov dl, ah
nop dword [eax]
mov edi, dword [esp + 8]
mov ecx, esi
mov dword [esp + 0x34], edx
movzx edx, dl
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 4]
mov dword [esp + 0x90], edi
mov edi, dword [esp + 0x28]
shld edx, esi, 0x10
mov dword [esp + 0x30], edi
movzx ebx, byte [ebx + 0x138]
cmp bl, 0x4c
jne 0x47a0a0
mov edi, dword [esp + 0xc]
mov ebx, eax
mov byte [edi + 0x138], al
mov word [edi + 0x139], cx
shr ecx, 0x10
mov eax, dword [esp + 0x30]
mov byte [edi + 0x13b], cl
mov dword [edi + 0x13c], edx
mov edx, dword [esp + 0x90]
mov dword [edi + 0x140], eax
mov dword [edi + 0x144], edx
jmp 0x47a0a0
movzx eax, bl
mov ebx, dword [esp + 0xc]
cmp eax, 0x4b
je 0x47a4d9
movzx esi, byte [ebx + 0x13b]
movzx edi, word [ebx + 0x139]
mov ecx, dword [ebx + 0x13c]
mov edx, dword [ebx + 0x144]
shl edi, 8
shl esi, 0x18
mov dword [esp + 0x2c], ecx
movzx ecx, byte [ebx + 0x143]
or esi, edi
movzx edi, word [ebx + 0x141]
shl ecx, 0x18
shl edi, 8
or ecx, edi
movzx edi, byte [ebx + 0x140]
jmp 0x47a505
mov byte [ebx + 0x138], 0x4b
mov dword [ebx + 0x13c], 0
mov edx, dword [ebx + 0x13c]
xor ecx, ecx
mov eax, 0x4b
test edx, edx
je 0x47a4ff
mov esi, dword [edx]
add edx, 8
mov edi, 2
add esi, 8
mov dword [esp + 0x2c], esi
xor esi, esi
jmp 0x47a505
xor esi, esi
xor edi, edi
mov edx, ebx
or eax, esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], ebx
or ecx, edi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x4c]
lea ecx, [esi + 0x10]
push eax
call fcn.0047a5f0
add esp, 4
mov dword [esi + 0xc], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x47a56d
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x30], ecx
mov esi, dword [esp + 0x80]
lock inc dword [esi]
mov edi, dword [esp + 0x84]
jle 0x47a5e6
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], ebx
mov edx, dword [ebp + 0x10]
movaps xmm1, xmmword [esp + 0x90]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x4c]
movsd xmm0, qword [esp + 0x18]
movsd xmm2, qword [esp + 0x10]
movsd qword [ecx + 8], xmm0
movsd qword [ecx], xmm2
movlps qword [ecx + 0x20], xmm1
mov dword [ecx + 0x28], edi
mov edi, dword [esp + 0x88]
mov dword [ecx + 0x2c], edi
mov edi, dword [esp + 0x30]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edi
mov dword [ecx + 0x38], esi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], edx
jmp 0x47a555
ud2