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

Disassembly:
push 0xffffffffffffffff
push 0x52924b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x581500]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x581500]
xor eax, esp
push eax
lea eax, [esp + 0x1dc]
mov dword fs:[0], eax
cmp dword [esp + 0x1f8], 6
mov eax, dword [esp + 0x1ec]
mov ebp, dword [esp + 0x1f0]
mov dword [esp + 0x2c], eax
ja 0x47bc86
mov ecx, dword [esp + 0x1fc]
add ecx, 0x3e8
cmp ecx, 0x3f5
ja 0x47bc86
mov al, byte [ebp + 0x28]
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
test al, al
je 0x47b8fe
mov edx, dword [esp + 0x1f4]
mov eax, dword [esp + 0x2c]
push edx
lea esi, [ebp + 0x2c]
mov ecx, 0xa
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x38]
call fcn.00477b20
jmp 0x47b948
mov al, byte [ebp + 0x10]
test al, al
je 0x47b91b
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x34], edx
mov edx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], edx
jmp 0x47b923
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], ebx
mov eax, 1
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], eax
mov byte [esp + 0x14], bl
cmp byte [ebp + 0xe8], bl
je 0x47b95e
mov al, byte [ebp + 0xec]
mov byte [esp + 0x14], al
mov byte [esp + 0x17], bl
cmp byte [ebp + 4], bl
je 0x47b972
mov al, byte [ebp + 8]
mov byte [esp + 0x17], al
test al, al
jne 0x47b97c
cmp byte [esp + 0x14], bl
je 0x47bc86
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
cmp byte [ebp + 0x90], bl
je 0x47b996
mov ecx, dword [ebp + 0x94]
mov dword [esp + 0x24], ecx
cmp byte [ebp + 0xa0], bl
je 0x47b9a8
mov edx, dword [ebp + 0xa4]
mov dword [esp + 0x28], edx
cmp dword [esp + 0x24], ebx
je 0x47bc86
cmp dword [esp + 0x28], ebx
je 0x47bc86
cmp byte [ebp + 0x80], bl
je 0x47bc86
mov esi, dword [ebp + 0x84]
cmp esi, ebx
je 0x47bc86
mov al, byte [ebp + 0x11c]
or ecx, 0xffffffff
mov dword [esp + 0x18], ecx
test al, al
je 0x47b9f3
mov edx, dword [ebp + 0x120]
mov dword [esp + 0x18], edx
jmp 0x47b9f7
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0xac]
call fcn.0040e1f0
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
push edi
mov edx, esi
lea ecx, [esp + 0xb4]
mov dword [esp + 0x1ec], ebx
call fcn.0047bd50
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004973a0
add esp, 4
test al, al
jne 0x47ba3d
cmp byte [esp + 0x14], al
jne 0x47bc7a
cmp byte [ebp + 0xbc], 0
mov dword [esp + 0x1c], ebx
mov esi, 0x55922c
je 0x47ba55
mov esi, dword [ebp + 0xc0]
lea ecx, [esp + 0x64]
call fcn.0044ca80
mov eax, dword [esp + 0x1f8]
push 0xffffffffffffffff
lea edx, [esp + 0x19]
push edx
push eax
push esi
lea ecx, [esp + 0x2c]
push ecx
push edi
call fcn.0047a2e0
test al, al
je 0x47baa7
mov eax, dword [esp + 0x1c]
push ebx
push 2
push 2
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push ebx
or ebx, 0xffffffff
lea ecx, [esp + 0x84]
call fcn.0044cad0
mov byte [esp + 0xa4], 1
xor ebx, ebx
cmp byte [ebp + 0xb0], 0
mov byte [esp + 0x16], 0
je 0x47babf
mov dl, byte [ebp + 0xb4]
mov byte [esp + 0x16], dl
cmp byte [ebp + 0xf4], 0
mov byte [esp + 0x15], 0
je 0x47bad7
mov al, byte [ebp + 0xf8]
mov byte [esp + 0x15], al
cmp byte [ebp + 0x100], 0
mov dword [esp + 0x1c], ebx
je 0x47baee
mov ecx, dword [ebp + 0x104]
mov dword [esp + 0x1c], ecx
push 0x404
call fcn.004faf1d
add esp, 4
cmp eax, ebx
je 0x47bb08
mov esi, eax
call fcn.0047bcb0
mov ebx, eax
mov eax, dword [esp + 0x24]
mov dl, byte [esp + 0x17]
lea edi, [ebx + 0x250]
mov ecx, 0xd
lea esi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x248], eax
mov byte [ebx + 0x284], dl
mov dword [ebx + 0x24c], ecx
cmp byte [esp + 0x1c8], 0
lea eax, [esp + 0xb8]
jne 0x47bb4f
mov eax, dword [esp + 0xb4]
add eax, 4
mov edx, ebx
call fcn.00411710
lea edi, [ebx + 0x288]
mov ecx, 0x11
lea esi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
movzx edx, word [esp + 0x1fc]
mov eax, dword [esp + 0x1f8]
shl eax, 0x10
or edx, eax
push edx
push str.flash__08x
lea edi, [ebx + 0x124]
call fcn.00411ea0
mov cl, byte [esp + 0x1e]
mov al, byte [esp + 0x1d]
mov dl, byte [esp + 0x1c]
mov byte [ebx + 0x285], cl
mov ecx, dword [esp + 0x24]
mov byte [ebx + 0x3f1], al
xor al, al
add esp, 8
mov byte [ebx + 0x3f0], dl
mov dword [ebx + 0x3f4], ecx
cmp byte [ebp + 0xcc], al
je 0x47bbca
mov al, byte [ebp + 0xd0]
mov byte [ebx + 0x286], al
xor al, al
cmp byte [ebp + 0x110], al
je 0x47bbe0
mov al, byte [ebp + 0x114]
mov edx, dword [esp + 0x18]
mov byte [ebx + 0x3f2], al
mov dword [ebx + 0x3f8], edx
cmp byte [ebp + 0xd8], 0
mov eax, 0x55922c
je 0x47bc04
mov eax, dword [ebp + 0xdc]
lea edx, [ebx + 0x2cc]
call fcn.00411710
cmp byte [ebp + 0x12c], 0
mov al, 1
je 0x47bc20
mov al, byte [ebp + 0x130]
mov byte [ebx + 0x3fc], al
cmp byte [ebp + 0x138], 0
mov al, 1
je 0x47bc37
mov al, byte [ebp + 0x13c]
mov byte [ebx + 0x3fd], al
cmp byte [ebp + 0x144], 0
mov al, 1
je 0x47bc4e
mov al, byte [ebp + 0x148]
mov byte [ebx + 0x3fe], al
mov ecx, dword [esp + 0x1fc]
mov edx, dword [esp + 0x1f8]
sub esp, 8
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x34]
add eax, 0x18c
call fcn.0047cc90
lea ecx, [esp + 0xac]
call fcn.00411680
mov ecx, dword [esp + 0x1dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.004fa259
add esp, 0x1d4
ret 0x1c