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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x551584
sub esp, 0x50
mov edx, dword [esp + 0x54]
test byte [edx], al
movzx ebx, byte [esp + 0x58]
movzx eax, bl
cmp eax, 3
jae 0x551579
mov ecx, dword [edx]
mov eax, dword [edx + eax*4 + 0x10]
mov dword [esp + 0x4c], eax
mov ebx, dword [edx + 4]
mov ecx, dword [ecx + 0x24]
mov ebp, dword [eax]
mov esi, dword [eax + 4]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call ecx
movzx eax, byte [esp + 0x58]
test al, al
jne 0x551318
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x5c]
mov dword [ecx + 0x70], edx
mov edx, dword [esp + 0x60]
mov dword [ecx + 0x74], edx
mov edx, dword [esp + 0x64]
mov dword [ecx + 0x78], edx
mov edx, dword [esp + 0x68]
mov dword [ecx + 0x7c], edx
mov ecx, dword [eax + 0x1c]
test byte [ecx], al
jmp 0x5514f3
cmp al, 1
jne 0x551432
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x24]
mov edx, dword [esp + 0x6c]
mov dword [ecx + 0x60], edx
mov edx, dword [esp + 0x70]
mov dword [ecx + 0x64], edx
mov edx, dword [esp + 0x74]
mov dword [ecx + 0x68], edx
mov edx, dword [esp + 0x78]
mov dword [ecx + 0x6c], edx
mov ecx, dword [eax + 0x24]
mov edx, dword [esp + 0x7c]
mov dword [ecx + 0x70], edx
mov edx, dword [esp + 0x80]
mov dword [ecx + 0x74], edx
mov edx, dword [esp + 0x84]
mov dword [ecx + 0x78], edx
mov edx, dword [esp + 0x88]
mov dword [ecx + 0x7c], edx
lea edi, [esp + 0x1c]
lea esi, [esp + 0xa0]
call fcn.004664c4
mov ecx, dword [esp + 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], 0x3f800000
call fcn.0044e350
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], edx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x2c]
mov dword [esp], ebp
mov dword [esp + 4], 0x3f800000
call fcn.0044e350
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x24]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x30]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov ebp, dword [esp + 0x18]
mov dword [ecx + 0x10], ebp
mov ebp, dword [esp + 0x14]
mov dword [ecx + 0x14], ebp
mov ebp, dword [esp + 0x10]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov ebp, dword [esp + 0xc]
mov dword [ecx + 0x20], ebp
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x28], ebx
jmp 0x5514f3
lea edi, [esp + 0x34]
lea esi, [esp + 0xa0]
call fcn.004664c4
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], 0x3f800000
call fcn.0044e350
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x44]
mov dword [esp], ebp
mov dword [esp + 4], 0x3f800000
call fcn.0044e350
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x48]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov ebp, dword [esp + 0x18]
mov dword [ecx + 0x10], ebp
mov ebp, dword [esp + 0x14]
mov dword [ecx + 0x14], ebp
mov ebp, dword [esp + 0x10]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov ebp, dword [esp + 0xc]
mov dword [ecx + 0x20], ebp
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x28], ebx
mov dword [ecx + 0x34], 0
movzx edx, byte [esp + 0x59]
test dl, dl
je 0x55150a
mov dword [ecx + 0x34], 0x3f800000
mov edx, dword [esp + 0x9c]
mov dword [ecx + 0x30], edx
mov edx, dword [esp + 0x8c]
mov dword [ecx], edx
mov edx, dword [esp + 0x90]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x94]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x98]
mov dword [ecx + 0xc], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [esp + 0x4c]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00551810
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 0x48]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 4
call ecx
add esp, 0x50
ret
mov ecx, 3
call fcn.00465e00
nop
call fcn.004649b0
jmp fcn.00551290