Function at 0x492620
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x512e51
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56957c]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x1b0]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x64], edx
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x68], edx
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x6c], ecx
mov ecx, dword [edx + 0xc]
xor ebp, ebp
mov ebx, vtable.t_fileBufferWrite.1.0
push 0x10000
mov dword [esp + 0x54], 0x554401d3
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 8
mov dword [esp + 0x1c], vtable.t_fileBufferWrite.0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], 0x10000
call fcn.004ed893
add esp, 4
mov dword [esp + 0x20], eax
push 0x2c
lea ecx, [esp + 0x54]
push ecx
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x1b4], ebp
call fcn.00480a30
test al, al
jne 0x49272b
mov ecx, edi
call fcn.00416430
push 0x5531fc
push 0x549858
mov edx, eax
call fcn.00417ed0
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x28]
add esp, 8
mov dword [esp + 0x18], vtable.t_fileBufferWrite.0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
cmp eax, ebp
je 0x492724
push eax
call fcn.004ed7b6
add esp, 4
xor al, al
jmp 0x492a05
push 4
lea edx, [esp + 0x34]
push edx
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebp
call fcn.00480a30
test al, al
jne 0x49276f
mov ecx, edi
call fcn.00416430
push 0x55321c
push 0x549858
mov edx, eax
call fcn.00417ed0
add esp, 8
lea ecx, [esp + 0x18]
call fcn.004814e0
xor al, al
jmp 0x492a05
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov esi, dword [eax + 4]
mov ecx, dword [eax]
add esi, eax
mov dword [esp + 0x40], esi
mov esi, dword [eax + 8]
add esi, eax
mov dword [esp + 0x44], esi
mov esi, dword [eax + 0xc]
mov edx, eax
mov edx, dword [edx + 0x10]
add esi, eax
add ecx, eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x30], ebp
cmp edx, ebp
jbe 0x492904
lea ebx, [ecx + 8]
nop
cmp dword [ebx], ebp
je 0x4928e3
push 4
push ebx
push edi
lea ecx, [esp + 0x24]
call fcn.00480a30
test al, al
je 0x492996
mov esi, dword [ebx - 8]
add esi, dword [esp + 0x44]
push 2
push esi
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x58], esi
call fcn.00480a30
test al, al
je 0x492996
movsx ecx, word [esi]
push ecx
lea eax, [esi + 2]
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.00480a30
test al, al
je 0x492996
mov eax, dword [ebx - 4]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x40]
lea eax, [eax + edx*4]
mov dword [esp + 0x38], ebp
cmp dword [ebx], ebp
jbe 0x4928d4
lea ebp, [eax + 6]
mov esi, dword [ebp - 6]
add esi, dword [esp + 0x48]
push 2
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00480a30
test al, al
je 0x492996
movzx eax, word [esi]
mov edx, 0x80
lea ecx, [esi + 2]
cmp ax, dx
ja 0x4929c0
test ax, ax
jle 0x4929c0
cwde
push eax
push ecx
push edi
lea ecx, [esp + 0x24]
call fcn.00480a30
test al, al
je 0x4929a7
push 2
lea ecx, [ebp - 2]
push ecx
push edi
lea ecx, [esp + 0x24]
call fcn.00480a30
test al, al
je 0x4929a7
push 2
push ebp
push edi
lea ecx, [esp + 0x24]
call fcn.00480a30
test al, al
je 0x4929a7
push 4
lea edx, [ebp + 2]
push edx
push edi
lea ecx, [esp + 0x24]
call fcn.00480a30
test al, al
je 0x4929a7
mov eax, dword [esp + 0x38]
inc dword [esp + 0x3c]
inc eax
add ebp, 0xc
mov dword [esp + 0x38], eax
cmp eax, dword [ebx]
jb 0x492823
mov esi, dword [esp + 0x4c]
xor ebp, ebp
movsx eax, word [esi]
mov ecx, dword [esp + 0x34]
lea edx, [ecx + eax + 2]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x1b0]
mov ecx, dword [esp + 0x30]
mov edx, dword [eax]
mov eax, dword [edx + 4]
inc ecx
add ebx, 0xc
mov dword [esp + 0x30], ecx
cmp ecx, dword [eax + 0x10]
jb 0x4927b0
lea ecx, [esp + 0x7c]
call fcn.004174b0
mov eax, dword [esp + 0x1b4]
lea edx, [esp + 0x7c]
call fcn.00417710
lea eax, [esp + 0x7c]
push eax
lea esi, [esp + 0x1c]
mov byte [esp + 0x1ac], 2
call fcn.004815a0
test al, al
mov byte [esp + 0x1a8], 0
sete bl
cmp byte [esp + 0x198], 0
mov dword [esp + 0x7c], vtable.t_str.0
jne 0x49296d
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x88]
cmp eax, ecx
je 0x49296d
push eax
call fcn.004ed7b6
add esp, 4
mov ecx, edi
test bl, bl
je 0x4929d1
call fcn.00416430
push 0x553278
push 0x549858
mov edx, eax
call fcn.00417ed0
mov dword [esp + 0x24], vtable.t_fileBufferWrite.1.0
jmp 0x4926fc
mov ecx, edi
call fcn.00416430
push 0x55323c
jmp 0x492750
push 0x55323c
mov ecx, edi
call fcn.004014b0
lea ecx, [esp + 0x18]
call fcn.004814e0
xor al, al
jmp 0x492a05
mov ecx, edi
call fcn.00416430
push 0x553258
jmp 0x492750
call fcn.00416480
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], vtable.t_fileBufferWrite.0
mov dword [esp + 0x1c], vtable.t_fileBufferWrite.1.0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
cmp eax, ebp
je 0x492a03
push eax
call fcn.004ed7b6
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x198
ret 8