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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
mov byte [ebp - 1], cl
mov esi, edx
mov edi, eax
cmp byte [edi + 0xf1], 2
jne 0x4812c4
mov byte [edi + 0xf1], 0
mov byte [edi + 0xe9], 0
movzx eax, byte [ebp - 1]
xor al, 1
test al, al
je 0x4812ee
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004146f0
xor ecx, ecx
mov edx, 0x481560
call fcn.00414adc
jmp 0x481305
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004146f0
xor ecx, ecx
mov edx, 0x4815a4
call fcn.00414adc
call fcn.004146f0
lea edx, [ebp - 8]
call fcn.00415260
movzx eax, byte [edi + 0x4d]
mov ebx, eax
test al, al
je 0x481325
xor edx, edx
mov eax, edi
call fcn.00482748
mov ecx, ebx
mov dl, 1
mov eax, edi
call fcn.004810b0
mov dword [edi + 0x48], esi
cmp dword [edi + 0x48], 0
je 0x481553
push 0
push 3
mov ecx, dword [edi + 0x48]
mov dl, 1
mov eax, dword [0x469b90]
call fcn.00469d54
mov dword [edi + 0x84], eax
mov eax, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
mov dword [eax + 0x2c], edi
mov dword [eax + 0x28], 0x481620
mov eax, dword [edi + 0x84]
mov edx, dword [edi + 0x18]
mov dword [eax + 0x4c], edx
mov eax, dword [edi + 0x84]
mov dword [eax + 0x50], 0x65
test bl, bl
je 0x4813ac
push 0
mov ecx, dword [edi + 0x48]
mov dl, 1
mov eax, dword [0x47b50c]
call fcn.0047c50c
mov dword [edi + 0x78], eax
mov eax, dword [edi + 0x78]
mov edx, dword [eax]
call dword [edx + 0x1c]
xor edx, edx
mov eax, dword [edi + 0x78]
call fcn.0047c8b8
mov eax, dword [edi + 0x84]
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x14], edx
movzx eax, byte [ebp - 1]
xor al, 1
test al, al
je 0x4813ec
mov eax, dword [edi + 0x84]
call fcn.0046a16c
push eax
mov eax, dword [edi + 0x84]
call fcn.00480df4
mov edx, eax
lea ecx, [ebp - 0x18]
mov eax, dword [edi + 0x60]
call fcn.00443d10
lea edx, [ebp - 0x40]
mov eax, dword [edi + 0x60]
call fcn.00443d94
mov eax, dword [ebp - 0x40]
cmp eax, 0xa
jg 0x481404
mov eax, 0xa
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x40]
mov eax, dword [edi + 0x60]
call fcn.00443d94
mov eax, dword [ebp - 0x3c]
cmp eax, 0xa
jg 0x48141f
mov eax, 0xa
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x84]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x24], edx
call fcn.00480dd0
mov edx, eax
mov eax, dword [edi + 0x84]
call fcn.0046a098
cmp dword [edi + 0x78], 0
je 0x48145a
mov eax, dword [edi + 0x78]
call fcn.0047cb34
fstp qword [ebp - 0x20]
wait
jmp 0x481462
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x38]
mov eax, dword [edi + 0x84]
call fcn.0046a138
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
fld qword [esi + 0x28]
call fcn.004034a0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
fild qword [ebp - 0x40]
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x28]
push eax
push edi
push 0x48126c
push edi
push 0x481270
push edi
push 0x481700
push edi
push 0x481278
movzx eax, byte [edi + 0x80]
push eax
lea edx, [ebp - 0x50]
mov eax, dword [edi + 0x84]
call fcn.0046a138
lea ecx, [ebp - 0x50]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
call fcn.0047e740
mov dword [edi + 0x7c], eax
test bl, bl
je 0x48153f
mov eax, dword [ebp + 8]
mov dword [edi + 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x74], eax
mov eax, dword [edi + 0x84]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp + 8]
mov dword [eax + 0x18], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edx
mov dword [edi + 0x9c], 0x80000001
push dword [ebp + 0xc]
push dword [ebp + 8]
lea edx, [edi + 0xb8]
mov eax, edi
call fcn.00482b08
push dword [ebp + 0xc]
push dword [ebp + 8]
lea edx, [edi + 0xb8]
mov eax, edi
call fcn.00482c34
mov byte [edi + 0xe8], 0
push 0
call fcn.004146f0
mov ecx, dword [ebp - 8]
mov edx, 0x4815ec
call fcn.0041526c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8