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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d3f1f
push eax
mov dword fs:[0], esp
sub esp, 0x2e8
push ebx
mov ebx, dword [esp + 0x300]
push ebp
push esi
mov eax, dword [ebx + 8]
push edi
test eax, eax
je 0x47af0a
mov ebp, dword [esp + 0x308]
lea eax, [ebp + 0x38]
push eax
call dword [0x4d6634]
mov esi, eax
mov ecx, 0x10
neg esi
sbb esi, esi
xor eax, eax
lea edi, [esp + 0x30]
inc esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 4]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x34], eax
mov eax, esi
neg eax
sbb eax, eax
mov edi, 1
and al, 0xfd
mov dword [esp + 0x30], 0x42
add eax, 4
or eax, 0x40100
cmp ecx, edi
mov dword [esp + 0x44], eax
jne 0x47aaa8
test ecx, ecx
jle 0x47aa06
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
jmp 0x47aa08
xor eax, eax
push eax
lea ecx, [esp + 0x184]
call fcn.0049c790
lea ecx, [esp + 0x180]
mov dword [esp + 0x300], 0
call fcn.0049e8b0
lea ecx, [esp + 0x180]
call fcn.0049e940
cmp eax, edi
jle 0x47aa8d
lea ecx, [esp + 0x180]
call fcn.0049dd40
test eax, eax
jne 0x47aa8d
lea ecx, [esp + 0x180]
mov word [esp + 0x4c], di
mov word [esp + 0x48], di
call fcn.0049e940
mov word [esp + 0x4e], ax
mov word [esp + 0x4a], ax
mov eax, dword [ebp + 0x50]
test eax, eax
jl 0x47aa8d
inc ax
test esi, esi
mov word [esp + 0x4a], ax
mov word [esp + 0x48], ax
jne 0x47aa8d
mov eax, dword [esp + 0x44]
or al, 2
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x180]
mov dword [esp + 0x300], 0xffffffff
call fcn.0049cb20
mov eax, dword [esp + 0x44]
cmp word [esp + 0x48], di
jb 0x47aab6
cmp word [esp + 0x4a], di
jae 0x47aabc
or al, 8
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x58]
xor esi, esi
cmp eax, esi
je 0x47ab54
lea edx, [esp + 0x1f8]
push 0x100
push edx
push 0x4f0ac0
push str.device
push str.windows
call dword [0x4d64c4]
lea eax, [esp + 0x1f8]
push 0x4f0aac
push eax
call fcn.004a88ee
mov edi, eax
add esp, 8
test edi, edi
je 0x47ab3a
push 0x4edd68
push esi
call fcn.004a88ee
mov esi, eax
add esp, 8
test esi, esi
je 0x47ab3a
push 0x4edd68
push 0
call fcn.004a88ee
add esp, 8
test eax, eax
je 0x47ab3a
push 0
push eax
push edi
push esi
call dword [0x4d6160]
jmp 0x47ab3c
xor eax, eax
mov dword [esp + 0x40], eax
mov edi, 1
xor esi, esi
cmp dword [esp + 0x40], esi
jne 0x47ab67
xor eax, eax
jmp 0x47af0a
lea ecx, [esp + 0x30]
push ecx
call fcn.004b6bba
test eax, eax
jne 0x47ab47
jmp 0x47af0a
cmp dword [ebx + 8], edi
jle 0x47ab78
mov word [esp + 0x48], si
mov word [esp + 0x4a], si
jmp 0x47abcb
mov al, byte [esp + 0x44]
test al, 1
je 0x47aba1
mov eax, dword [ebp + 0x50]
cmp eax, esi
jl 0x47ab95
inc ax
mov word [esp + 0x4a], ax
mov word [esp + 0x48], ax
jmp 0x47abcb
mov word [esp + 0x4a], di
mov word [esp + 0x48], di
jmp 0x47abcb
test al, 2
lea eax, [ebp + 0x38]
push eax
je 0x47abb1
call dword [0x4d6838]
jmp 0x47abcb
call dword [0x4d6838]
mov dx, word [esp + 0x4c]
mov ax, word [esp + 0x4e]
mov word [esp + 0x48], dx
mov word [esp + 0x4a], ax
push 0x80
mov dword [esp + 0x18], 0x4daa68
call fcn.004bd49b
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x1f
mov dword [esp + 0x28], 0x40
mov eax, dword [ebx + 8]
mov dword [esp + 0x300], edi
test eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], esi
jle 0x47ad06
jmp 0x47ac1b
mov ebx, dword [esp + 0x30c]
push pe_nt_image_headers32
call fcn.004bd49b
add esp, 4
mov dword [esp + 0x74], eax
test eax, eax
mov byte [esp + 0x300], 2
je 0x47ac5e
cmp esi, dword [ebx + 8]
jge 0x47ac50
test esi, esi
jl 0x47ac50
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + esi*4]
mov ecx, eax
push edx
call fcn.0049c790
mov ebx, eax
jmp 0x47ac60
xor edx, edx
mov ecx, eax
push edx
call fcn.0049c790
mov ebx, eax
jmp 0x47ac60
xor ebx, ebx
test ebx, ebx
mov byte [esp + 0x300], 1
je 0x47acf1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x47acdd
mov ecx, dword [esp + 0x28]
add ecx, eax
lea edx, [ecx*4 + 4]
push edx
call fcn.004bd49b
mov ebp, eax
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov edi, ebp
lea ecx, [eax*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
push eax
call fcn.004bd4c4
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
add esp, 8
add eax, ecx
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x308]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [edx + eax*4], ebx
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x30c]
inc esi
mov dword [esp + 0x10], esi
cmp esi, dword [ecx + 8]
jl 0x47ac14
mov edx, dword [esp + 0x4a]
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp + 0x4c]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [ebp + 0x48]
push eax
push ecx
mov ecx, dword [ebp + 0x38]
push edx
mov edx, dword [ebp + 0x3c]
sub esp, 0x10
lea edi, [ebp + 8]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0xc], edx
mov edx, dword [ebp + 4]
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebp]
push ecx
push edi
push edx
push eax
lea ecx, [esp + 0xac]
call fcn.00475ed0
mov eax, dword [ebp + 0x54]
mov byte [esp + 0x300], 3
test eax, eax
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x78]
je 0x47adab
mov edx, dword [esp + 0xd4]
mov eax, dword [esp + 0xd0]
push ecx
push 0x475e00
push edx
push 0x1f8
push eax
call dword [0x4d6800]
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [esp + 0x10], ecx
jmp 0x47adb0
call fcn.00477410
mov eax, dword [esp + 0x10]
mov ecx, 0xc
lea esi, [esp + 0x78]
test eax, eax
rep movsd dword es:[edi], dword [esi]
je 0x47add0
lea ecx, [esp + 0x78]
call fcn.00479d80
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0xe4]
mov esi, dword [0x4d6098]
push edx
mov byte [esp + 0x304], 1
call esi
mov eax, dword [esp + 0xe8]
push eax
call esi
mov eax, dword [esp + 0x170]
mov dword [esp + 0x160], 0x4daa3c
test eax, eax
je 0x47ae98
mov eax, dword [esp + 0x168]
xor ebp, ebp
test eax, eax
jle 0x47ae98
cmp ebp, eax
jge 0x47ae93
test ebp, ebp
jl 0x47ae93
mov ecx, dword [esp + 0x164]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x47ae93
mov eax, dword [edi + 0x10]
mov dword [edi], 0x4daa40
test eax, eax
je 0x47ae7a
mov eax, dword [edi + 8]
xor ebx, ebx
test eax, eax
jle 0x47ae7a
cmp ebx, eax
jge 0x47ae72
test ebx, ebx
jl 0x47ae72
mov edx, dword [edi + 4]
mov esi, dword [edx + ebx*4]
test esi, esi
je 0x47ae72
mov eax, dword [esi + 0x38]
push eax
call fcn.004bd4c4
mov eax, dword [esi + 0x3c]
push eax
call fcn.004bd4c4
push esi
call fcn.004bd4c4
add esp, 0xc
mov eax, dword [edi + 8]
inc ebx
cmp ebx, eax
jl 0x47ae49
mov eax, dword [edi + 4]
push eax
call fcn.004bd4c4
push edi
call fcn.004bd4c4
mov eax, dword [esp + 0x170]
add esp, 8
inc ebp
cmp ebp, eax
jl 0x47ae1d
mov eax, dword [esp + 0x164]
push eax
call fcn.004bd4c4
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
mov dword [esp + 0x300], 0xffffffff
mov dword [esp + 0x14], 0x4daa68
je 0x47aef9
mov eax, dword [esp + 0x1c]
xor edi, edi
test eax, eax
jle 0x47aef9
cmp edi, eax
jge 0x47aef4
test edi, edi
jl 0x47aef4
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x47aef4
mov ecx, esi
call fcn.0049cb20
push esi
call fcn.004bd4c4
mov eax, dword [esp + 0x20]
add esp, 4
inc edi
cmp edi, eax
jl 0x47aed1
mov edx, dword [esp + 0x18]
push edx
call fcn.004bd4c4
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, dword [esp + 0x2f8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2f4
ret