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

Disassembly:
push 0xffffffffffffffff
push 0x1012f18b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
mov ebx, ecx
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 4]
test eax, eax
jne 0x10050ba0
xor al, al
jmp 0x10051156
push ebp
push esi
push edi
mov ecx, ebx
call fcn.100535d0
mov esi, eax
mov ecx, ebx
mov dword [esp + 0x10], esi
call fcn.100535e0
mov edi, eax
push 0
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], edi
call fcn.1004db00
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x24c], 0
call fcn.1004de20
mov ecx, ebx
call fcn.10053620
push eax
mov ecx, ebx
call fcn.10053610
and eax, 0xffff
lea ecx, [esp + 0x48]
push eax
push edi
push esi
call fcn.1004de40
push 0x100
mov ecx, ebx
call fcn.10054760
push eax
lea ecx, [esp + 0x4c]
call fcn.10055190
mov ecx, ebx
call fcn.10055470
test al, al
je 0x10050c27
lea ecx, [esp + 0x44]
call fcn.100554b0
mov ecx, ebx
call fcn.10055990
test al, al
je 0x10050c3b
lea ecx, [esp + 0x44]
call fcn.100559a0
cmp word [ebx + 0x16], 1
jne 0x10050e51
push 0
mov ecx, ebx
call fcn.1004dff0
push 0
lea ecx, [esp + 0x48]
mov dword [esp + 0x38], eax
call fcn.1004dff0
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
push 0
lea edx, [ecx + eax - 1]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x54]
lea ebp, [eax*8]
lea ecx, [esp + 0x48]
sub ebp, edx
mov dword [esp + 0x3c], ebp
call fcn.1004e0a0
mov eax, dword [ebx + 0x10]
xor esi, esi
test eax, eax
mov dword [esp + 0x24], esi
jle 0x10050d74
lea ecx, [esi + ebp]
push 8
push ecx
call fcn.10098e63
mov dword [esp + 0x44], eax
mov ecx, edx
mov al, 1
mov edx, dword [esp + 0x3c]
shl al, cl
mov ecx, dword [ebx + 0x30]
add esp, 8
mov edi, ecx
mov dword [esp + 0x14], 0
imul edi, esi
add edi, edx
mov byte [esp + 0x2b], al
test ecx, ecx
jle 0x10050d64
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
imul edx, ebp
sub edx, eax
mov eax, dword [esp + 0x2c]
xor esi, esi
lea ecx, [edx + eax - 1]
mov dword [esp + 0x30], ecx
mov edx, esi
mov ecx, dword [esp + 0x30]
imul edx, ebp
mov eax, dword [esp + 0x2c]
add edx, ecx
cmp edx, eax
jb 0x10050d41
cmp edx, dword [esp + 0x1c]
ja 0x10050d41
mov eax, 0x80
mov ecx, esi
sar eax, cl
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx + edi]
test cl, al
je 0x10050d3b
mov al, byte [esp + 0x2b]
mov cl, byte [edx]
or cl, al
mov byte [edx], cl
mov ebp, dword [esp + 0x74]
inc esi
cmp esi, 8
jl 0x10050d00
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
inc eax
add edx, 8
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
jl 0x10050ce5
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x38]
mov eax, dword [ebx + 0x10]
inc esi
cmp esi, eax
mov dword [esp + 0x24], esi
jl 0x10050c9f
mov ecx, ebx
call fcn.10055470
test al, al
je 0x10050dbe
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jle 0x10050dbe
lea ebp, [eax - 1]
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x10050db4
push ebp
push esi
mov ecx, ebx
call fcn.10055790
push eax
push esi
push edi
lea ecx, [esp + 0x50]
call fcn.100556c0
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x10050d96
mov eax, dword [esp + 0x10]
inc edi
dec ebp
cmp edi, eax
jl 0x10050d8c
mov ecx, ebx
call fcn.10055990
test al, al
je 0x1005110c
mov eax, dword [esp + 0x10]
mov edi, dword [ebx + 0x174]
mov esi, dword [ebx + 0x17c]
mov ecx, eax
mov edx, eax
sub ecx, edi
sub edx, esi
mov dword [esp + 0x1b4], ecx
mov ecx, dword [ebx + 0x170]
mov dword [esp + 0x1bc], edx
mov edx, dword [ebx + 0x178]
xor edi, edi
test eax, eax
mov dword [esp + 0x1c0], ecx
mov dword [esp + 0x1b8], edx
jle 0x1005110c
lea ebp, [eax - 1]
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x10050e42
push ebp
push esi
mov ecx, ebx
call fcn.10055b40
push eax
push esi
push edi
lea ecx, [esp + 0x50]
call fcn.10055b00
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x10050e24
mov eax, dword [esp + 0x10]
inc edi
dec ebp
cmp edi, eax
jl 0x10050e1a
jmp 0x1005110c
mov eax, dword [esp + 0x10]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x2c], ebp
jle 0x1005110c
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0
test eax, eax
jle 0x100510f9
cmp word [ebx + 0x16], 0x18
lea eax, [ebp + ebp*4]
mov ebx, ebp
lea edi, [eax + eax*4]
jne 0x10050f2e
mov ecx, dword [esp + 0x10]
mov eax, ecx
sub eax, ebp
shl edi, 2
mov dword [esp + 0x34], eax
dec eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
lea eax, [ebp + 0x40]
cmp ecx, eax
jge 0x10050eac
mov eax, ecx
cmp ebx, eax
jge 0x10050fae
mov eax, edi
mov ecx, dword [esp + 0x1c]
cdq
idiv dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
push ebp
push ebx
mov dword [ecx + 0x144], eax
lea ecx, [esp + 0x4c]
call fcn.10055440
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
push ebp
mov esi, eax
call fcn.10055440
mov ecx, ebp
add ebp, 0x40
mov edx, dword [esp + 0x18]
cmp edx, ebp
jl 0x10050ef4
mov edx, ebp
cmp ecx, edx
jge 0x10050f14
mov dl, byte [eax]
add eax, 3
mov byte [esi], dl
mov dl, byte [eax - 2]
mov byte [esi + 1], dl
mov dl, byte [eax - 1]
mov byte [esi + 2], dl
mov edx, dword [esp + 0x74]
add esi, edx
inc ecx
jmp 0x10050eea
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
inc ebx
add edi, 0x64
dec eax
mov dword [esp + 0x14], eax
jmp 0x10050ea3
mov ecx, dword [esp + 0x10]
mov eax, ecx
sub eax, ebp
shl edi, 2
mov dword [esp + 0x34], eax
dec eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
lea eax, [ebp + 0x40]
cmp ecx, eax
jge 0x10050f4f
mov eax, ecx
cmp ebx, eax
jge 0x10050fae
mov eax, edi
mov ecx, dword [esp + 0x1c]
cdq
idiv dword [esp + 0x10]
mov esi, dword [esp + 0x20]
lea ebp, [esi + 0x40]
mov dword [ecx + 0x144], eax
mov eax, dword [esp + 0x18]
cmp eax, ebp
jl 0x10050f75
mov eax, ebp
cmp esi, eax
jge 0x10050f97
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
push esi
call fcn.10054900
push eax
push esi
push ebx
lea ecx, [esp + 0x50]
call fcn.10054c60
inc esi
jmp 0x10050f6b
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
inc ebx
add edi, 0x64
dec eax
mov dword [esp + 0x14], eax
jmp 0x10050f46
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.10055470
test al, al
je 0x1005102d
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x10]
lea eax, [ebp + 0x40]
cmp ecx, eax
jge 0x10050fde
mov eax, ecx
cmp dword [esp + 0x14], eax
jge 0x1005102d
mov esi, dword [esp + 0x20]
lea edi, [esi + 0x40]
mov eax, dword [esp + 0x18]
cmp eax, edi
jl 0x10050ff5
mov eax, edi
cmp esi, eax
jge 0x10051019
mov edx, dword [esp + 0x30]
mov ecx, ebx
push edx
push esi
call fcn.10055790
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x50]
call fcn.100556c0
inc esi
jmp 0x10050feb
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
inc ecx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
jmp 0x10050fd1
mov ecx, ebx
call fcn.10055990
test al, al
je 0x100510de
mov ecx, dword [esp + 0x10]
mov esi, dword [ebx + 0x174]
mov edx, ecx
mov eax, ecx
sub edx, esi
mov edi, ebp
mov dword [esp + 0x1b4], edx
mov edx, dword [ebx + 0x17c]
sub eax, edx
mov edx, dword [ebx + 0x170]
mov dword [esp + 0x1bc], eax
mov eax, dword [ebx + 0x178]
mov dword [esp + 0x1c0], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1b8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], eax
lea eax, [ebp + 0x40]
cmp ecx, eax
jge 0x10051097
mov eax, ecx
cmp edi, eax
jge 0x100510de
mov esi, dword [esp + 0x20]
lea ebx, [esi + 0x40]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jl 0x100510ac
mov eax, ebx
cmp esi, eax
jge 0x100510ce
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push esi
call fcn.10055b40
push eax
push esi
push edi
lea ecx, [esp + 0x50]
call fcn.10055b00
inc esi
jmp 0x100510a2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc edi
dec eax
mov dword [esp + 0x24], eax
jmp 0x1005108e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
add eax, 0x40
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x10050e77
mov eax, dword [esp + 0x10]
add ebp, 0x40
cmp ebp, eax
mov dword [esp + 0x2c], ebp
jl 0x10050e63
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebp
test ecx, ecx
push 1
je 0x10051123
lea edx, [esp + 0x3c]
push edx
jmp 0x1005112a
lea eax, [esp + 0x3c]
mov ecx, ebx
push eax
call fcn.1004e110
lea ecx, [esp + 0x38]
mov dword [esp + 0x23c], 0xffffffff
mov dword [esp + 0x38], sym.FirmwareModifier.dll_const_CxImage::vftable
call fcn.1004dbd0
lea ecx, [esp + 0x38]
call fcn.1004db20
mov al, 1
mov ecx, dword [esp + 0x234]
pop ebx
mov dword fs:[0], ecx
add esp, 0x23c
ret 4