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

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x248
mov eax, 2
push ebx
push ebp
push esi
cmp ecx, eax
push edi
jl 0x5466d9
cmp ecx, 0x18
jg 0x5466d9
mov ecx, 1
mov edx, 3
mov dword [esp + 0x88], ecx
mov dword [esp + 0x98], ecx
mov ecx, 5
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xf8], ecx
xor esi, esi
mov ebx, 4
mov ebp, 6
mov edi, 8
mov eax, 9
mov ecx, 0xa
mov edx, 0xb
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xdc], 7
mov dword [esp + 0xe0], esi
mov dword [esp + 0xe4], esi
mov dword [esp + 0xf4], edi
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], esi
mov dword [esp + 0x104], esi
mov dword [esp + 0x108], 7
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x110], esi
mov dword [esp + 0x114], esi
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], edx
mov dword [esp + 0x120], esi
mov dword [esp + 0x124], esi
mov dword [esp + 0x128], ebp
mov dword [esp + 0x12c], edi
mov dword [esp + 0x130], edx
mov dword [esp + 0x13c], ecx
mov ecx, 0xe
mov dword [esp + 0x138], eax
mov eax, 0xd
mov dword [esp + 0x154], ecx
mov dword [esp + 0x158], ecx
mov dword [esp + 0x178], ecx
mov dword [esp + 0x198], ecx
mov ecx, 0x13
mov dword [esp + 0x144], eax
mov dword [esp + 0x150], eax
mov dword [esp + 0x16c], eax
mov dword [esp + 0x14c], edi
mov eax, 0x11
mov dword [esp + 0x1a4], ecx
mov dword [esp + 0x1b8], ecx
mov edi, 0xf
mov ecx, 0x15
mov dword [esp + 0x17c], eax
mov dword [esp + 0x19c], eax
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x1e8], eax
mov eax, dword [esp + 0x264]
mov dword [esp + 0x15c], edi
mov dword [esp + 0x170], edi
mov dword [esp + 0x188], edx
mov dword [esp + 0x1bc], ecx
mov dword [esp + 0x1c8], ecx
mov ebp, 0xc
mov edx, 0x12
mov edi, 0x16
mov ecx, 0x17
cmp eax, esi
mov dword [esp + 0x134], ebp
mov dword [esp + 0x140], ebp
mov dword [esp + 0x148], ebx
mov dword [esp + 0x160], esi
mov dword [esp + 0x164], esi
mov dword [esp + 0x168], ebx
mov dword [esp + 0x174], 0x10
mov dword [esp + 0x180], esi
mov dword [esp + 0x184], esi
mov dword [esp + 0x18c], edx
mov dword [esp + 0x190], esi
mov dword [esp + 0x194], esi
mov dword [esp + 0x1a0], edx
mov dword [esp + 0x1ac], 0x14
mov dword [esp + 0x1b0], esi
mov dword [esp + 0x1b4], esi
mov dword [esp + 0x1c0], esi
mov dword [esp + 0x1c4], esi
mov dword [esp + 0x1cc], edi
mov dword [esp + 0x1d0], esi
mov dword [esp + 0x1d4], esi
mov dword [esp + 0x1d8], edx
mov dword [esp + 0x1dc], ecx
mov dword [esp + 0x1e0], esi
mov dword [esp + 0x1e4], esi
mov dword [esp + 0x1ec], edi
mov dword [esp + 0x1f0], ecx
mov dword [esp + 0x1f4], 0x18
jne 0x5465cb
mov ebp, dword [esp + 0x260]
cmp ebp, esi
jle 0x546634
mov ecx, ebp
mov eax, 1
lea edi, [esp + 0x1f8]
rep stosd dword es:[edi], eax
jmp 0x546634
mov dword [esp + 0x10], 1
push esi
call dword [0x5fca40]
push eax
call dword [0x5fca44]
mov eax, dword [esp + 0x268]
add esp, 8
cmp eax, esi
jle 0x546627
lea edi, [esp + 0x1f8]
mov ebp, eax
call dword [0x5fca48]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x602418]
fadd qword [0x5ff1b8]
call fcn.005dfdf0
cmp eax, 1
mov dword [edi], eax
jne 0x546622
mov dword [esp + 0x10], esi
add edi, ebx
dec ebp
jne 0x5465f8
cmp dword [esp + 0x10], esi
jne 0x5465d3
mov ebp, dword [esp + 0x260]
fld qword [0x5ff4e8]
fild dword [esp + 0x260]
call fcn.005dffc6
fsub qword [0x5fd8a8]
call fcn.005dfdf0
cmp eax, esi
jle 0x5466d9
mov ecx, dword [esp + 0x25c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + ebp*4 + 0x14]
xor eax, eax
cmp edx, esi
jle 0x546689
mov ecx, ebp
shl ecx, 4
lea ecx, [esp + ecx + 0x68]
mov edi, dword [ecx]
add ecx, ebx
add eax, dword [esp + edi*4 + 0x1f4]
dec edx
jne 0x54667b
mov ecx, dword [esp + ebp*4 + 0x1f4]
mov edx, dword [esp + 0x10]
and eax, 1
cmp ecx, esi
mov dword [edx], ecx
jne 0x5466a3
mov dword [edx], 0xffffffff
lea edx, [ebp - 1]
cmp edx, 1
jl 0x5466bd
lea ecx, [esp + edx*4 + 0x1f8]
mov edi, dword [ecx - 4]
mov dword [ecx], edi
add ecx, 0xfffffffc
dec edx
jne 0x5466b2
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1f8], eax
mov eax, dword [esp + 0x14]
add ecx, ebx
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x546668
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x248
ret