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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2022
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, 3
push 0xa
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], edi
call fcn.004cebd2
mov dword [ebp - 4], 0
call fcn.004d4318
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
lea esp, [esp]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
call dword [eax + 0x58]
test eax, eax
je 0x475fef
lea ecx, [ebp - 0x14]
call fcn.00410bf0
mov ecx, eax
call fcn.0040f870
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4753a0
cmp word [eax], 0x3b
je 0x4753a0
call fcn.004d4318
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x3a
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov byte [ebp - 4], 2
call fcn.0046e530
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00406f20
mov eax, dword [ebp - 0x9c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47542f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx - 4]
mov esi, dword [ebx - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebx - 8]
sub eax, esi
or eax, ecx
jge 0x475454
push esi
lea ecx, [ebp - 0x18]
call fcn.00402a90
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.004b7351
push str.playresx
mov dword [ebx - 0xc], esi
push ebx
mov word [ebx + esi*2], 0
call fcn.004b772d
add esp, 0xc
test eax, eax
jne 0x4754dd
lea eax, [ebp - 0x14]
push 0x2c
push eax
mov byte [ebp - 4], 4
call fcn.00470ae0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x38]
add esp, 8
test edx, edx
mov dword [ecx + 0x34], eax
mov dword [ebp - 4], 2
jg 0x475fc5
cmp eax, 0x500
jne 0x4754b3
mov eax, 0x400
mov dword [ecx + 0x38], eax
jmp 0x475fc5
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ecx + 0x38], eax
jmp 0x475fc5
push str.playresy
push ebx
call fcn.004b772d
add esp, 8
test eax, eax
jne 0x47555d
lea edx, [ebp - 0x14]
push 0x2c
push edx
mov byte [ebp - 4], 6
call fcn.00470ae0
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x34]
add esp, 8
test ecx, ecx
mov dword [esi + 0x38], eax
mov dword [ebp - 4], 2
jg 0x475fc5
cmp eax, 0x400
jne 0x47552d
mov edx, 0x500
mov dword [esi + 0x34], edx
jmp 0x475fc5
lea ecx, [eax*4]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esi + 0x34], edx
jmp 0x475fc5
push str.wrapstyle
push ebx
call fcn.004b772d
add esp, 8
test eax, eax
jne 0x4755a3
lea ecx, [ebp - 0x14]
push 0x2c
push ecx
mov byte [ebp - 4], 8
call fcn.00470ae0
mov edx, dword [ebp + 0xc]
add esp, 8
mov dword [edx + 0x3c], eax
mov dword [ebp - 4], 2
jmp 0x475fc5
push str.scripttype
push ebx
call fcn.004b772d
add esp, 8
test eax, eax
jne 0x475657
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 4
jl 0x475604
push 4
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x14]
call fcn.00466b00
mov eax, dword [eax]
push str.4.00
push eax
call fcn.004b8423
add esp, 8
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x78]
inc bl
call fcn.00402a10
test bl, bl
je 0x475604
mov edi, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x44], edi
jmp 0x475fc5
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 5
jl 0x475fc5
push 5
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00466b00
mov eax, dword [eax]
push 0x50a5a4
push eax
call fcn.004b8423
add esp, 8
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x60]
inc bl
call fcn.00402a10
test bl, bl
je 0x475fc5
mov edi, 5
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x44], edi
jmp 0x475fc5
push str.collisions
push ebx
call fcn.004b772d
add esp, 8
test eax, eax
jne 0x4756bd
push 0x2c
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.0046e530
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.00406f20
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00402a10
lea ecx, [ebp - 0x14]
call fcn.0040f820
push 0
push str.reverse
lea ecx, [ebp - 0x14]
call fcn.0040bdd0
mov edx, dword [ebp + 0xc]
xor ecx, ecx
test eax, eax
setge cl
mov dword [edx + 0x40], ecx
jmp 0x475fc5
push str.scaledborderandshadow
push ebx
call fcn.004b772d
add esp, 8
test eax, eax
jne 0x475721
push 0x2c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call fcn.0046e530
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00406f20
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00402a10
lea ecx, [ebp - 0x14]
call fcn.0040f820
push 0
push 0x50a548
lea ecx, [ebp - 0x14]
call fcn.0040bdd0
test eax, eax
mov eax, dword [ebp + 0xc]
setge dl
mov byte [eax + 0x44], dl
jmp 0x475fc5
lea ecx, [ebp - 0x18]
push str._v4_styles_
push ecx
call fcn.0040be10
add esp, 8
test al, al
je 0x475743
mov edi, 4
mov dword [ebp - 0x34], edi
jmp 0x475fc5
lea edx, [ebp - 0x18]
push 0x50a514
push edx
call fcn.0040be10
add esp, 8
test al, al
je 0x475765
mov edi, 5
mov dword [ebp - 0x34], edi
jmp 0x475fc5
lea eax, [ebp - 0x18]
push str.style
push eax
call fcn.0040be10
add esp, 8
test al, al
je 0x475bae
push 0x88
call fcn.004d2f6a
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
mov byte [ebp - 4], 0xc
je 0x4757a1
mov ecx, eax
call fcn.00472650
mov esi, eax
jmp 0x4757a3
xor esi, esi
test esi, esi
mov dword [ebp - 0x38], esi
je 0x475f6f
lea ecx, [ebp - 0x30]
call fcn.00406190
push 0x2c
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x5c]
push edx
mov byte [ebp - 4], 0xe
call fcn.0046e530
add esp, 0xc
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xf
call fcn.00406f20
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xe
call fcn.00402a10
push 0x2c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xa0]
push ecx
call fcn.0046e530
add esp, 0xc
push eax
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 0x10
call fcn.00407070
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xe
call fcn.00402a10
lea edx, [ebp - 0x14]
push 0x2c
push edx
call fcn.0046e650
fstp qword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add esp, 8
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ecx
xor ebx, ebx
cmp ebx, 4
push 0x2c
jge 0x47584f
lea edx, [ebp - 0x14]
push edx
call fcn.00470ae0
add esp, 8
mov dword [esi + ebx*4 + 0x28], eax
inc ebx
jmp 0x475835
lea eax, [ebp - 0x14]
push eax
call fcn.00470ae0
add esp, 8
neg eax
sbb eax, eax
and eax, 0x12c
lea ecx, [ebp - 0x14]
add eax, 0x190
push 0x2c
push ecx
mov dword [esi + 0x68], eax
call fcn.00470ae0
add esp, 8
test eax, eax
setne dl
cmp edi, 5
mov byte [esi + 0x6c], dl
jl 0x47592b
lea eax, [ebp - 0x14]
push 0x2c
push eax
call fcn.00470ae0
add esp, 8
test eax, eax
lea edx, [ebp - 0x14]
setne cl
push 0x2c
push edx
mov byte [esi + 0x6d], cl
call fcn.00470ae0
add esp, 8
test eax, eax
lea ecx, [ebp - 0x14]
setne al
push 0x2c
push ecx
mov byte [esi + 0x6e], al
call fcn.0046e650
fstp qword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
add esp, 8
lea ecx, [ebp - 0x14]
push 0x2c
push ecx
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], eax
call fcn.0046e650
fstp qword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
add esp, 8
lea ecx, [ebp - 0x14]
push 0x2c
push ecx
mov dword [esi + 0x58], edx
mov dword [esi + 0x5c], eax
call fcn.0046e650
fstp qword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
add esp, 8
lea ecx, [ebp - 0x14]
push 0x2c
push ecx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], eax
call fcn.0046e650
fstp qword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
add esp, 8
mov dword [esi + 0x70], edx
mov dword [esi + 0x74], eax
cmp edi, 4
jl 0x475941
lea ecx, [ebp - 0x14]
push 0x2c
push ecx
call fcn.00470ae0
add esp, 8
mov dword [esi + 0x14], eax
lea edx, [ebp - 0x14]
push 0x2c
push edx
call fcn.0046e650
fstp qword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add esp, 8
lea edx, [ebp - 0x14]
push 0x2c
push edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
call fcn.0046e650
fstp qword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add esp, 8
lea edx, [ebp - 0x14]
push 0x2c
push edx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
call fcn.00470ae0
add esp, 8
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x14]
push 0x2c
push eax
call fcn.00470ae0
add esp, 8
lea ecx, [ebp - 0x14]
push 0x2c
push ecx
mov dword [esi], eax
call fcn.00470ae0
add esp, 8
lea edx, [ebp - 0x14]
push 0x2c
push edx
mov dword [esi + 8], eax
call fcn.00470ae0
add esp, 8
cmp edi, 4
mov dword [esi + 0xc], eax
mov dword [esi + 4], eax
jg 0x4759db
lea eax, [ebp - 0x14]
push 0x2c
push eax
call fcn.00470ae0
mov ebx, eax
add esp, 8
mov dword [ebp - 0x2c], ebx
jmp 0x4759de
mov ebx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x14]
push 0x2c
push ecx
call fcn.00470ae0
add esp, 8
xor ecx, ecx
cmp edi, 4
mov dword [esi + 0x40], eax
jg 0x475a29
cmp ebx, 0xff
mov edx, dword [esi + 0x34]
mov dword [esi + 0x30], edx
jge 0x475a1c
cmp ebx, ecx
jg 0x475a0e
mov dword [ebp - 0x2c], ecx
mov ebx, dword [ebp - 0x2c]
xor eax, eax
cmp eax, 3
jge 0x475a25
mov byte [eax + esi + 0x38], bl
inc eax
jmp 0x475a10
mov dword [ebp - 0x2c], 0xff
jmp 0x475a0b
mov byte [esi + 0x3b], 0x80
cmp edi, 5
jl 0x475aa4
xor eax, eax
cmp eax, 4
jge 0x475a45
mov dl, byte [esi + eax*4 + 0x2b]
mov byte [eax + esi + 0x38], dl
mov byte [esi + eax*4 + 0x2b], 0
inc eax
jmp 0x475a30
cmp edi, 5
jl 0x475aa4
fld qword [esi + 0x50]
fcomp qword [0x4f9a70]
fnstsw ax
test ah, 0x41
jne 0x475a5f
fld qword [esi + 0x50]
jmp 0x475a65
fld qword [0x4f9a70]
fstp qword [esi + 0x50]
fld qword [esi + 0x58]
fcomp qword [0x4f9a70]
fnstsw ax
test ah, 0x41
jne 0x475a7d
fld qword [esi + 0x58]
jmp 0x475a83
fld qword [0x4f9a70]
fstp qword [esi + 0x58]
fld qword [esi + 0x60]
fcomp qword [0x4f9a70]
fnstsw ax
test ah, 0x41
jne 0x475a9b
fld qword [esi + 0x60]
jmp 0x475aa1
fld qword [0x4f9a70]
fstp qword [esi + 0x60]
mov eax, dword [esi + 0x14]
cmp eax, 1
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], ecx
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], ecx
jne 0x475ac2
xor eax, eax
jmp 0x475acc
xor ecx, ecx
cmp eax, 3
sete cl
mov eax, ecx
fld qword [esi + 0x18]
mov dword [esi + 0x14], eax
fcomp qword [0x4f9a70]
fnstsw ax
test ah, 0x41
jne 0x475ae4
fld qword [esi + 0x18]
jmp 0x475aea
fld qword [0x4f9a70]
fstp qword [esi + 0x18]
fld qword [esi + 0x20]
fcomp qword [0x4f9a70]
fnstsw ax
test ah, 0x41
jne 0x475b02
fld qword [esi + 0x20]
jmp 0x475b08
fld qword [0x4f9a70]
cmp edi, 4
fstp qword [esi + 0x20]
jg 0x475b31
mov eax, dword [esi + 0x10]
test al, 4
je 0x475b1f
and eax, 3
add eax, 6
jmp 0x475b2e
test al, 8
je 0x475b2b
and eax, 3
add eax, 3
jmp 0x475b2e
and eax, 3
mov dword [esi + 0x10], eax
push 0x2a
lea ecx, [ebp - 0x30]
call fcn.0042a8b0
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0xbc]
call fcn.004cee75
mov ecx, dword [esi + 0x40]
push esi
push ecx
mov dword [eax], ecx
lea edx, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edx
call fcn.00406320
mov ecx, dword [ebp + 0xc]
call fcn.0046ef80
lea ecx, [ebp - 0x30]
call fcn.00402a10
mov dword [ebp - 4], 2
jmp 0x475fc5
lea eax, [ebp - 0x18]
push str.dialogue
push eax
call fcn.0040be10
add esp, 8
test al, al
je 0x475fa4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x38], 0
call fcn.00406190
lea ecx, [ebp - 0x48]
call fcn.00406190
lea ecx, [ebp - 0x28]
call fcn.00406190
mov esi, dword [ebp - 0x44]
cmp esi, 4
mov byte [ebp - 4], 0x15
jg 0x475c1a
push 0x3d
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.0046e530
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.00402a10
lea eax, [ebp - 0x14]
push 0x2c
push eax
call fcn.00470ae0
add esp, 8
cmp esi, 5
jl 0x475c30
lea ecx, [ebp - 0x14]
push 0x2c
push ecx
call fcn.00470ae0
add esp, 8
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x14]
push 0x3a
push edx
call fcn.00470ae0
add esp, 8
mov edi, eax
lea eax, [ebp - 0x14]
push 0x3a
push eax
call fcn.00470ae0
add esp, 8
lea ecx, [ebp - 0x14]
push 0x2e
push ecx
mov dword [ebp - 0x8c], eax
call fcn.00470ae0
add esp, 8
lea edx, [ebp - 0x14]
push 0x2c
push edx
mov dword [ebp - 0x94], eax
call fcn.00470ae0
add esp, 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push 0x3a
push eax
call fcn.00470ae0
add esp, 8
lea ecx, [ebp - 0x14]
push 0x3a
push ecx
mov esi, eax
call fcn.00470ae0
add esp, 8
lea edx, [ebp - 0x14]
push 0x2e
push edx
mov dword [ebp - 0x74], eax
call fcn.00470ae0
add esp, 8
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x14]
push 0x2c
push eax
call fcn.00470ae0
add esp, 8
push 0x2c
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x88]
push edx
mov dword [ebp - 0x84], eax
call fcn.0046e530
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x16
call fcn.00406f20
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x15
call fcn.00402a10
push 0x2c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.0046e530
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x17
call fcn.00406f20
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x15
call fcn.00402a10
push 0x2c
lea edx, [ebp - 0x14]
push edx
call fcn.00470ae0
add esp, 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x14]
push 0x2c
push eax
call fcn.00470ae0
add esp, 8
lea ecx, [ebp - 0x14]
push 0x2c
push ecx
mov dword [ebp - 0x58], eax
call fcn.00470ae0
add esp, 8
push 0x2c
lea edx, [ebp - 0x14]
mov dword [ebp - 0x50], eax
push edx
lea eax, [ebp - 0x98]
push eax
call fcn.0046e530
add esp, 0xc
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x18
call fcn.00406f20
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x15
call fcn.00402a10
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx - 0xc]
mov ebx, dword [edx - 0xc]
cmp eax, ebx
jge 0x475d91
mov ebx, eax
push ebx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406da0
mov dword [ebp - 0x40], eax
push ebx
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x19
call fcn.00406da0
mov edx, dword [ebp - 0x40]
push edx
push eax
call fcn.0042a7d0
add esp, 8
lea ecx, [ebp - 0x90]
mov bl, al
call fcn.00402a10
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x15
call fcn.00402a10
test bl, bl
je 0x475de7
lea ecx, [ebp - 0x28]
call fcn.00402a30
push 0x2a
lea ecx, [ebp - 0x24]
call fcn.0042a8b0
mov eax, dword [ebp - 0x24]
push 0x501b24
push eax
call fcn.004b8423
add esp, 8
test eax, eax
jne 0x475e13
push 0x501b24
lea ecx, [ebp - 0x24]
call fcn.00403220
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x3c]
push ecx
push edx
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0x3c], 0
call fcn.004ceca9
test eax, eax
jne 0x475e45
lea eax, [ebp - 0x3c]
push eax
push 0x501b24
lea ecx, [ebp - 0xbc]
call fcn.004ceca9
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x475e4f
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.00406320
lea ecx, [ebp - 0x54]
push ecx
call fcn.0046d8f0
add esp, 0x10
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x4c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp - 0x58]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
push ecx
mov dword [ecx + 0xc], eax
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
mov byte [ebp - 4], 0x1a
call fcn.00406320
push ecx
lea edx, [ebp - 0x48]
mov ecx, esp
mov dword [ebp - 0x50], esp
push edx
mov byte [ebp - 4], 0x1b
call fcn.00406320
push ecx
lea eax, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
mov byte [ebp - 4], 0x1c
call fcn.00406320
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x40], esp
push edx
mov byte [ebp - 4], 0x1d
call fcn.00406320
imul esi, esi, 0x3c
imul edi, edi, 0x3c
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x84]
add esi, ecx
mov ecx, dword [ebp - 0x8c]
imul esi, esi, 0x3c
add esi, eax
imul esi, esi, 0x64
add edi, ecx
imul edi, edi, 0x3c
add esi, ebx
mov ebx, dword [ebp - 0x1c]
lea eax, [esi + esi*4]
shl eax, 1
push eax
add edi, dword [ebp - 0x94]
imul edi, edi, 0x64
add edi, ebx
mov byte [ebp - 4], 0x1e
lea ecx, [edi + edi*4]
shl ecx, 1
push ecx
push ecx
lea edx, [ebp - 0x54]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edx
call fcn.00406320
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 0x1a
call fcn.00472f30
lea ecx, [ebp - 0x54]
call fcn.00402a10
lea ecx, [ebp - 0x28]
call fcn.00402a10
lea ecx, [ebp - 0x48]
call fcn.00402a10
lea ecx, [ebp - 0x24]
call fcn.00402a10
mov edi, dword [ebp - 0x34]
mov dword [ebp - 4], 2
jmp 0x475fc5
lea ecx, [ebp - 0x18]
call fcn.00402a10
lea ecx, [ebp - 0x14]
call fcn.00402a10
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 0xffffffff
call fcn.004ced49
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push str.fontname
push eax
call fcn.0040be10
add esp, 8
test al, al
je 0x475fc5
mov ecx, dword [ebp + 8]
push ecx
call fcn.00470d40
add esp, 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4753a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4753a0
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x45], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x476017
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 0xffffffff
call fcn.004ced49
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret