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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
mov eax, dword [0x557b14]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
call fcn.004057b1
inc eax
push eax
call fcn.004ae61a
mov edi, dword [esi]
mov ebx, eax
pop ecx
mov dword [esp + 0x50], ebx
add edi, 4
call fcn.004057b1
push eax
push ebx
mov ecx, esi
call dword [edi]
call fcn.004057b1
mov byte [eax + ebx], 0
mov dword [esp + 0x10], ebx
jmp 0x41449c
mov esi, dword [esp + 0x10]
push 9
push str._TEXTURE
push esi
mov byte [esp + 0x3b], 0
call fcn.004e2c04
add esp, 0xc
test eax, eax
jne 0x4144ad
lea eax, [esi + 9]
mov cl, byte [eax]
xor esi, esi
test cl, cl
je 0x4144ad
cmp cl, 0x2c
je 0x413a21
inc esi
mov cl, byte [esi + eax]
test cl, cl
jne 0x413a14
test esi, esi
je 0x4144ad
add esi, eax
cmp byte [esi], 0
je 0x4144ad
push eax
lea ecx, [esp + 0xdc]
mov byte [esi], 0
call fcn.00401516
inc esi
mov dword [esp + 0x14], esi
push 0x2c
lea esi, [esp + 0x18]
call fcn.0041370a
pop ecx
push 0x3e
mov dword [esp + 0x48], eax
call fcn.0041370a
mov ebx, eax
mov eax, dword [esp + 0x18]
pop ecx
lea esi, [esp + 0x10]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x10], eax
call fcn.0041f708
test al, al
je 0x4144d0
cmp dword [esp + 0xf0], 0x10
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xdc]
jae 0x413a9c
lea esi, [esp + 0xdc]
call fcn.00409666
push esi
mov ecx, eax
call fcn.0040aa2c
test eax, eax
mov dword [esp + 0x18], eax
jne 0x413afb
push 0x50
call fcn.004e0321
xor esi, esi
cmp eax, esi
pop ecx
je 0x413ae3
cmp dword [esp + 0xf0], 0x10
mov ecx, dword [esp + 0xdc]
jae 0x413ad7
lea ecx, [esp + 0xdc]
push ecx
call fcn.00416018
mov dword [esp + 0x18], eax
jmp 0x413ae7
mov dword [esp + 0x18], esi
call fcn.00409666
mov edx, dword [eax]
push esi
push esi
push 0xffffffffffffffff
push dword [esp + 0x24]
mov ecx, eax
call dword [edx + 0x10]
mov esi, dword [esp + 0x18]
push dword [esp + 0x44]
mov eax, esi
call fcn.00416478
mov eax, dword [esi + 0x34]
mov ecx, 0xffffff
push ecx
push ebx
push dword [esp + 0x4c]
push eax
call fcn.004051d8
xor eax, eax
add esp, 0x10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.004146e2
push 6
push str._FONT
push dword [esp + 0x18]
call fcn.004e2c04
jmp 0x413ec8
add edi, 6
mov al, byte [edi]
xor esi, esi
test al, al
je 0x4144e2
push 0x2c
pop ebx
cmp al, bl
je 0x413b6b
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x413b5c
test esi, esi
je 0x4144e2
add esi, edi
cmp byte [esi], 0
je 0x4144e2
push edi
lea ecx, [esp + 0xf8]
mov byte [esi], 0
call fcn.00401516
inc esi
mov dword [esp + 0x14], esi
push ebx
lea esi, [esp + 0x18]
call fcn.0041370a
pop ecx
push ebx
mov dword [esp + 0x74], eax
call fcn.0041370a
pop ecx
push ebx
mov dword [esp + 0x7c], eax
call fcn.0041370a
pop ecx
push ebx
mov dword [esp + 0x78], eax
call fcn.0041370a
pop ecx
push ebx
mov dword [esp + 0x34], eax
call fcn.0041370a
pop ecx
push ebx
mov dword [esp + 0x4c], eax
call fcn.0041370a
pop ecx
push 0x3e
mov dword [esp + 0x50], eax
call fcn.0041370a
xor edi, edi
cmp dword [esp + 0x74], edi
pop ecx
mov dword [esp + 0x7c], eax
jne 0x413bff
cmp dword [esp + 0x78], edi
jne 0x413bff
cmp dword [esp + 0x74], edi
jne 0x413bff
cmp dword [esp + 0x30], edi
je 0x413c04
mov byte [esp + 0x2f], 1
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.0041f708
test al, al
je 0x413f0d
cmp dword [esp + 0x10c], 0x10
mov esi, dword [esp + 0xf8]
jae 0x413c35
lea esi, [esp + 0xf8]
call fcn.004145e0
push esi
mov ecx, eax
call fcn.00415cdf
mov edi, eax
test edi, edi
jne 0x413c8b
push 0x68
call fcn.004e0321
test eax, eax
pop ecx
je 0x413c76
cmp dword [esp + 0x10c], 0x10
mov ecx, dword [esp + 0xf8]
jae 0x413c6c
lea ecx, [esp + 0xf8]
push ecx
call fcn.00410cf3
mov edi, eax
jmp 0x413c78
xor edi, edi
call fcn.004145e0
mov edx, dword [eax]
push 0
push 0
push 0xffffffffffffffff
push edi
mov ecx, eax
call dword [edx + 0x10]
mov ebx, dword [edi + 0x30]
test ebx, ebx
je 0x413c97
call fcn.0041a39b
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x7c]
mov dword [edi + 0x30], esi
inc dword [esi + 0xc]
mov dword [edi + 0x60], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x5c], eax
mov eax, dword [esp + 0x48]
lea ebx, [edi + 0x34]
mov dword [edi + 0x64], eax
call fcn.004125c8
push esi
mov ecx, edi
call fcn.004111c8
lea esi, [esp + 0xac]
call fcn.00414d35
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x20]
test edx, edx
mov esi, dword [esp + 0x24]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x98], edi
mov dword [esp + 0xa8], eax
je 0x413d3e
mov eax, dword [esp + 0x28]
mov ecx, esi
sub ecx, edx
sub eax, edx
sar ecx, 5
sar eax, 5
cmp ecx, eax
jae 0x413d3e
lea eax, [esp + 0x98]
push eax
push 1
push esi
call fcn.00414ac9
mov dword [esp + 0x24], eax
jmp 0x413e44
cmp edx, esi
jbe 0x413d47
call fcn.004e0f8f
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x2c]
call fcn.00414a2f
jmp 0x413e44
add esi, 7
mov dword [esp + 0x14], esi
push 0x2c
lea esi, [esp + 0x18]
call fcn.0041370a
pop ecx
push 0x2c
mov dword [esp + 0x50], eax
call fcn.0041370a
pop ecx
push 0x2c
mov edi, eax
call fcn.0041370a
pop ecx
push 0x3e
mov ebx, eax
call fcn.0041370a
cmp dword [esp + 0x24], 0
pop ecx
mov dword [esp + 0x48], eax
jne 0x413dad
xor eax, eax
jmp 0x413db8
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
sar eax, 5
and dword [esp + 0xb8], 0
and dword [esp + 0xc8], 0
dec eax
push eax
lea esi, [esp + 0x20]
call fcn.004147cb
cmp dword [esp + 0x20], 0
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], ebx
jne 0x413dfe
xor eax, eax
jmp 0x413e09
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
sar eax, 5
lea ecx, [esp + 0x4c]
push ecx
dec eax
push eax
lea esi, [esp + 0x24]
call fcn.004147cb
add eax, 0x14
call fcn.00414628
push 6
mov edi, eax
mov eax, dword [esp + 0x18]
pop ecx
lea esi, [esp + 0xb8]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.0041f708
test al, al
je 0x413e98
mov esi, dword [esp + 0x10]
push 7
push str._GLYPH
push esi
call fcn.004e2c04
add esp, 0xc
test eax, eax
je 0x413d6b
push 7
push str.__FONT_
push esi
call fcn.004e2c04
add esp, 0xc
test eax, eax
jne 0x414528
lea eax, [esi + 7]
lea esi, [esp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
call fcn.0041f708
test al, al
je 0x413e98
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xac]
call fcn.004149fa
push 0
push 1
lea ecx, [esp + 0xfc]
call fcn.00401293
push 6
push str._FONT
push dword [esp + 0x1c]
call fcn.004e2c04
mov edi, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x413b4d
push 0xa
push str.__TEXTURE_
push edi
call fcn.004e2c04
add esp, 0xc
test eax, eax
jne 0x4144e2
add edi, 0xa
lea esi, [esp + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
call fcn.0041f708
test al, al
je 0x413f1c
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jmp 0x413f1c
push edi
push 1
lea ecx, [esp + 0xfc]
call fcn.00401293
xor esi, esi
push str.font_exports
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.00520886
cmp eax, 0xffffffff
pop ecx
je 0x4140ca
mov dword [esp + 0x10], esi
cmp dword [esp + 0x20], esi
je 0x4140bf
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
sar eax, 5
cmp dword [esp + 0x10], eax
jae 0x4140bf
push dword [esp + 0x10]
lea esi, [esp + 0x20]
call fcn.004147cb
mov ecx, dword [eax + 0x18]
mov ebx, dword [ecx]
add eax, 0x14
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], eax
push dword [esp + 0x10]
lea esi, [esp + 0x20]
call fcn.004147cb
mov ecx, dword [eax + 0x18]
add eax, 0x14
lea edi, [esp + 0x90]
lea esi, [esp + 0x58]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], eax
call fcn.0040a739
test al, al
jne 0x4140b4
mov edi, dword [esp + 0x58]
test edi, edi
jne 0x413fc4
call fcn.004e0f8f
cmp ebx, dword [edi + 4]
jne 0x413fce
call fcn.004e0f8f
lea eax, [ebx + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push eax
lea esi, [esp + 0x38]
call fcn.004147ea
cmp ebx, dword [edi + 4]
jne 0x413ff1
call fcn.004e0f8f
push dword [esp + 0x10]
lea esi, [esp + 0x20]
call fcn.004147cb
mov eax, dword [eax]
add eax, 0x10
cmp dword [eax + 0x18], 0x10
jb 0x41400e
mov eax, dword [eax + 4]
jmp 0x414011
add eax, 4
push dword [ebx + 0xc]
push eax
lea eax, [esp + 0x118]
push str._s__d.tga
push eax
call fcn.004e116e
add esp, 0x10
push 0x539f08
lea eax, [esp + 0x114]
push eax
lea esi, [esp + 0x90]
call fcn.0041da2b
push 0xc
call fcn.004e0321
test eax, eax
pop ecx
je 0x414060
mov edi, esi
mov esi, eax
call fcn.00402574
mov edi, dword [esp + 0x58]
mov esi, eax
jmp 0x414062
xor esi, esi
cmp ebx, dword [edi + 4]
jne 0x41406c
call fcn.004e0f8f
mov eax, dword [esp + 0x30]
mov dword [eax], esi
cmp ebx, dword [edi + 4]
jne 0x41407c
call fcn.004e0f8f
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x34]
push 0
push 0
push eax
mov eax, dword [esp + 0x3c]
mov esi, dword [eax]
call fcn.00404d11
add esp, 0xc
lea edi, [esp + 0x88]
call fcn.0041da66
lea esi, [esp + 0x58]
call fcn.00414b44
mov ebx, dword [esp + 0x5c]
jmp 0x413f7e
inc dword [esp + 0x10]
xor esi, esi
jmp 0x413f42
push 0x539ec4
call fcn.00520886
pop ecx
cmp dword [esp + 0x38], esi
jne 0x4140d4
xor edi, edi
jmp 0x4140e5
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
sar eax, 2
cmp eax, esi
mov edi, eax
ja 0x4140ea
call fcn.004e0f8f
push 0x413958
push 4
push edi
push dword [esp + 0x44]
call fcn.004e2d90
push 0x1c
call fcn.004e0321
add esp, 0x14
cmp eax, esi
je 0x41412b
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x14], esi
mov dword [esp + 0x44], eax
jmp 0x41412f
mov dword [esp + 0x44], esi
mov edi, dword [esp + 0x18]
call fcn.00416528
xor esi, esi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x38], esi
je 0x4142d1
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
sar eax, 2
cmp dword [esp + 0x10], eax
jae 0x4142d1
mov esi, dword [esp + 0x10]
movzx ecx, byte [esp + 0x2f]
mov eax, dword [esp + 0x38]
mov ebx, esi
shl ebx, 2
push ecx
add eax, ebx
push dword [eax]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x4c]
call fcn.00413744
mov edi, eax
test edi, edi
je 0x4142a0
push dword [edi + 8]
mov eax, dword [esp + 0x1c]
push dword [edi]
mov eax, dword [eax + 0x34]
mov ecx, dword [edi + 0x10]
mov esi, dword [ecx]
push eax
call fcn.00404d11
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x4141bd
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
sar eax, 2
cmp dword [esp + 0x10], eax
jb 0x4141c2
call fcn.004e0f8f
mov eax, dword [esp + 0x38]
lea esi, [eax + ebx]
mov eax, dword [edi + 0xc]
sub eax, dword [esp + 0x30]
push eax
mov eax, dword [edi + 4]
sub eax, dword [esp + 0x34]
push eax
push dword [edi + 8]
mov eax, dword [esp + 0x24]
push dword [edi]
call fcn.0041654e
mov ecx, dword [esi]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x414205
mov edx, dword [esp + 0x3c]
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x10], ecx
jb 0x414212
call fcn.004e0f8f
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov edi, dword [eax + ebx]
add edi, 4
test eax, eax
je 0x414227
sub edx, eax
sar edx, 2
cmp dword [esp + 0x10], edx
jb 0x414230
call fcn.004e0f8f
mov eax, dword [esp + 0x38]
mov eax, dword [eax + ebx]
mov eax, dword [eax + 0x10]
mov esi, dword [esp + 0x18]
add esi, 0x40
push eax
call fcn.00404732
movsx eax, word [eax + 4]
add dword [edi], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x414262
mov edx, dword [esp + 0x3c]
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x10], ecx
jb 0x41426f
call fcn.004e0f8f
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov edi, dword [eax + ebx]
add edi, 8
test eax, eax
je 0x414284
sub edx, eax
sar edx, 2
cmp dword [esp + 0x10], edx
jb 0x41428d
call fcn.004e0f8f
mov eax, dword [esp + 0x38]
mov eax, dword [eax + ebx]
push dword [eax + 0x10]
call fcn.00404732
movsx eax, word [eax + 6]
add dword [edi], eax
jmp 0x4142c6
cmp dword [esp + 0x38], 0
je 0x4142b6
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
sar eax, 2
cmp esi, eax
jb 0x4142bb
call fcn.004e0f8f
mov eax, dword [esp + 0x38]
mov eax, dword [eax + ebx]
and dword [eax + 0x10], 0
inc dword [esp + 0x10]
xor esi, esi
jmp 0x41413e
mov ecx, dword [esp + 0x44]
cmp ecx, esi
je 0x4142e0
push 1
call fcn.0041392c
mov dword [esp + 0x18], esi
cmp dword [esp + 0x20], esi
je 0x414442
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
sar eax, 5
cmp dword [esp + 0x18], eax
jae 0x414442
push dword [esp + 0x18]
lea esi, [esp + 0x20]
call fcn.004147cb
mov ecx, dword [eax + 0x18]
mov ebx, dword [ecx]
add eax, 0x14
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], eax
push dword [esp + 0x18]
lea esi, [esp + 0x20]
call fcn.004147cb
mov ecx, dword [eax + 0x18]
add eax, 0x14
lea edi, [esp + 0x80]
lea esi, [esp + 0x68]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], eax
call fcn.0040a739
test al, al
jne 0x414437
mov esi, dword [esp + 0x68]
test esi, esi
jne 0x414366
call fcn.004e0f8f
cmp ebx, dword [esi + 4]
jne 0x414398
call fcn.004e0f8f
cmp ebx, dword [esi + 4]
jne 0x414398
call fcn.004e0f8f
cmp ebx, dword [esi + 4]
jne 0x414398
call fcn.004e0f8f
cmp ebx, dword [esi + 4]
jne 0x414398
call fcn.004e0f8f
cmp ebx, dword [esi + 4]
jne 0x414398
call fcn.004e0f8f
movzx eax, word [ebx + 0x1c]
push dword [esp + 0x18]
movzx edi, word [ebx + 0x20]
mov dword [esp + 0x4c], eax
movzx eax, word [ebx + 0x18]
mov dword [esp + 0x34], eax
movzx eax, word [ebx + 0x14]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0xc]
lea esi, [esp + 0x20]
mov dword [esp + 0x50], eax
call fcn.004147cb
mov esi, dword [eax]
mov eax, dword [esi + 0x30]
add eax, 0x40
call fcn.00404751
movzx ecx, di
cmp eax, ecx
jbe 0x414425
mov ax, word [esp + 0x54]
mov word [esp + 0x62], ax
mov ax, word [esp + 0x30]
mov word [esp + 0x64], ax
mov ax, word [esp + 0x48]
mov word [esp + 0x66], ax
lea eax, [esi + 0x34]
lea ebx, [esp + 0x4c]
mov word [esp + 0x60], di
call fcn.0041252a
mov ecx, dword [esp + 0x60]
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], ecx
movsx eax, word [esp + 0x30]
cmp eax, dword [esi + 0x60]
jge 0x414425
mov dword [esi + 0x60], eax
lea esi, [esp + 0x68]
call fcn.00414b44
mov ebx, dword [esp + 0x6c]
jmp 0x414320
inc dword [esp + 0x18]
xor esi, esi
jmp 0x4142e4
cmp dword [esp + 0x38], esi
je 0x414452
push dword [esp + 0x38]
call fcn.004e001f
pop ecx
mov eax, dword [esp + 0x20]
cmp eax, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
je 0x414479
push dword [esp + 0x24]
call fcn.00414aad
push dword [esp + 0x20]
call fcn.004e001f
pop ecx
push esi
push 1
lea ecx, [esp + 0xe0]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.00401293
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
lea esi, [esp + 0x10]
call fcn.0041f708
test al, al
jne 0x4139e4
push dword [esp + 0x50]
call fcn.004e001f
pop ecx
mov al, 1
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e0010
mov esp, ebp
pop ebp
ret 8
push 0
push 1
lea ecx, [esp + 0xe0]
call fcn.00401293
jmp 0x4144ad
push dword [esp + 0x50]
call fcn.004e001f
xor esi, esi
pop ecx
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x414509
push dword [esp + 0x24]
call fcn.00414aad
push dword [esp + 0x20]
call fcn.004e001f
pop ecx
push esi
push 1
lea ecx, [esp + 0xe0]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.00401293
xor al, al
jmp 0x4144b9
push dword [esp + 0x50]
call fcn.004e001f
pop ecx
lea eax, [esp + 0xac]
call fcn.004149fa
xor esi, esi
push esi
push 1
lea ecx, [esp + 0xfc]
call fcn.00401293
jmp 0x4144ee