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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x5b107c]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, 1
mov dword [esp + 0x20], eax
xor eax, eax
push esi
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
cmp byte [ebx + 0x4ff], al
jne 0x482380
lea esi, [ebx + 0x502]
mov ecx, 0x17
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
jmp 0x4823cb
mov ecx, dword [ebx + 0x546]
mov edx, dword [ebx + 0x54a]
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebx + 0x54e]
mov dword [esp + 0x80], edx
mov edx, dword [ebx + 0x552]
mov dword [esp + 0x84], ecx
mov ecx, dword [ebx + 0x556]
mov dword [esp + 0x88], edx
mov edx, dword [ebx + 0x55a]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
mov edi, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.00482240
mov dl, byte [ebx + 0x429]
mov cl, byte [ebx + 0x42a]
mov byte [esp + 0x10], al
movzx eax, al
lea eax, [eax + eax*2]
mov byte [esp + 0x12], dl
add eax, eax
add eax, eax
lea edx, [ebx + 0x42b]
mov dword [esp + 0x14], edx
lea edx, [eax + 0x698128]
lea esi, [eax + 0x698110]
movzx edi, cl
mov dword [esp + 0x1c], edx
lea eax, [eax + 0x6980f8]
lea edx, [esp + 0x38]
mov byte [esp + 0x11], cl
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
cmp dword [esi], edi
ja 0x482460
push str.AppearanceManager.cpp
xor ecx, ecx
mov edx, 0xeb
call fcn.0052cb10
add esp, 4
cmp dword [esi], edi
ja 0x482460
mov byte [esp + 0x11], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
push 0
push 0
mov eax, ebx
mov ebx, dword [esp + 0x30]
push ecx
mov ecx, ebx
call fcn.00549da0
push str.NULL.MOD
push 1
call fcn.0054a570
mov edi, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push ebx
push edi
call fcn.00483930
lea eax, [esp + 0x10]
push eax
push ebx
push edi
call fcn.00483390
lea ecx, [esp + 0x10]
push ecx
push ebx
push edi
call fcn.00482f00
lea edx, [esp + 0x10]
push edx
push ebx
push edi
call fcn.00482660
mov al, byte [edi + 0x147]
cmp al, 3
je 0x4824d0
cmp al, 8
je 0x4824d0
mov edx, ebx
mov ecx, edi
call fcn.00485d30
fld dword [edi + 0x472]
fmul qword [0x598fd0]
call fcn.00577600
mov ecx, dword [edi + 0x320]
mov dword [ecx + 0x22c], eax
fld dword [edi + 0x476]
fld qword [0x599308]
fcom st(1)
fnstsw ax
fstp st(1)
fld dword [0x599304]
fld dword [0x599300]
fld qword [0x598f90]
test ah, 5
jp 0x482520
fxch st(2)
fst dword [edi + 0x476]
jmp 0x48253b
fld dword [edi + 0x476]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x482539
fxch st(1)
fst dword [edi + 0x476]
fxch st(1)
fxch st(2)
fld dword [edi + 0x472]
fcomp st(4)
fnstsw ax
fstp st(3)
test ah, 0x41
jne 0x482558
fstp st(1)
fstp st(0)
fstp dword [edi + 0x472]
jmp 0x482573
fstp st(2)
fld dword [edi + 0x472]
fcompp
fnstsw ax
test ah, 5
jp 0x482571
fstp dword [edi + 0x472]
jmp 0x482573
fstp st(0)
fld dword [edi + 0x476]
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0x38]
fld dword [edi + 0x472]
fstp dword [esp + 4]
fld dword [edi + 0x476]
fstp dword [esp]
call fcn.0052c8f0
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x4825bd
mov ecx, dword [0x65fadc]
mov edx, dword [ecx]
lea esi, [esp + 0x2c]
push esi
push eax
mov eax, dword [edx + 0x8c]
push ecx
call eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4825e6
cmp dword [0x65fae8], 0
mov dword [ebx + 0xc], 1
jne 0x4825e6
mov ecx, dword [0x65fadc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x98]
push ecx
call eax
mov edx, dword [edi]
mov edx, dword [edx + 0x84]
lea eax, [edi + 0x14c]
push eax
mov ecx, edi
call edx
fld dword [edi + 0x24c]
fdiv qword [0x598de0]
mov eax, dword [edi]
mov edx, dword [eax + 0x8c]
push ecx
mov ecx, edi
fmul qword [0x598dd8]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [esp]
call edx
mov eax, dword [edi + 0x129]
cmp eax, dword [0x65fab0]
jne 0x48263c
lea ecx, [edi + 0x284]
call fcn.0054a8f0
call fcn.004b5470
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.005762ee
mov esp, ebp
pop ebp
ret 4