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

Disassembly:
sub esp, 0x58
mov eax, dword [0x5e687c]
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
lea edx, [ecx + 1]
mov dword [eax + 8], edx
mov eax, dword [0x5e687c]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x409800
test ecx, ecx
jne 0x409800
push str.Enter
push str.CharsetProcessString
push 0x47
push str.c:_daily_rwsdk_tool_charse_chrprint.c
push 4
call fcn.0047bec0
add esp, 0x14
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x409823
push str.NULL___string
push str.CharsetProcessString
push 0x48
push str.c:_daily_rwsdk_tool_charse_chrprint.c
push 1
call fcn.0047bec0
add esp, 0x14
mov eax, dword [esp + 0x60]
test eax, eax
ja 0x409846
push str.length___0
push str.CharsetProcessString
push 0x49
push str.c:_daily_rwsdk_tool_charse_chrprint.c
push 1
call fcn.0047bec0
add esp, 0x14
push ebx
mov ebx, dword [esp + 0x68]
push ebp
push esi
test ebx, ebx
push edi
jne 0x40986d
push str.NULL___charSet
push str.CharsetProcessString
push 0x4a
push str.c:_daily_rwsdk_tool_charse_chrprint.c
push 1
call fcn.0047bec0
add esp, 0x14
mov esi, dword [esp + 0x80]
test esi, esi
jne 0x409893
push str.NULL___vertices
push str.CharsetProcessString
push 0x4b
push str.c:_daily_rwsdk_tool_charse_chrprint.c
push 1
call fcn.0047bec0
add esp, 0x14
mov edi, dword [esp + 0x84]
test edi, edi
jne 0x4098b9
push str.NULL___indices
push str.CharsetProcessString
push 0x4c
push str.c:_daily_rwsdk_tool_charse_chrprint.c
push 1
call fcn.0047bec0
add esp, 0x14
lea ecx, [esp + 0x10]
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.004083b0
push ebx
call fcn.00476660
push ebx
mov dword [esp + 0x84], eax
call fcn.00476550
fild dword [esp + 0x84]
mov dword [esp + 0x94], eax
add esp, 0x10
fdivr dword [0x5b286c]
fst dword [esp + 0x80]
fild dword [esp + 0x84]
fdivr dword [0x5b286c]
fst dword [esp + 0x14]
fmul dword [0x5b2f90]
fstp dword [esp + 0x18]
fmul dword [0x5b2f90]
fstp dword [esp + 0x84]
call fcn.0046c790
mov ebp, eax
test ebp, ebp
jne 0x409947
push str.NULL___camera
push str.CharsetProcessString
push 0x59
push str.c:_daily_rwsdk_tool_charse_chrprint.c
push 1
call fcn.0047bec0
add esp, 0x14
push ebp
call fcn.0046ba10
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x409971
push str.NULL___dest
push str.CharsetProcessString
push 0x5b
push str.c:_daily_rwsdk_tool_charse_chrprint.c
push 1
call fcn.0047bec0
add esp, 0x14
push ebx
call fcn.00476660
push ebx
mov dword [esp + 0x18], eax
call fcn.00476550
mov dword [esp + 0x7c], eax
call fcn.0048f790
fstp dword [esp + 0x2c]
push ebp
call fcn.0046c170
fdivr dword [0x5b286c]
mov eax, dword [esp + 0x98]
add esp, 0xc
test eax, eax
fstp dword [esp + 0x20]
jne 0x4099b3
mov byte [0x5c3834], 0
mov ecx, dword [esp + 0x70]
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x8c], ebp
test ecx, ecx
mov dword [esp + 0x1c], eax
jbe 0x409be3
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
add edi, 4
mov dword [esp + 0x78], edx
add esi, 0x18
mov ecx, dword [esp + 0x6c]
mov al, byte [eax + ecx]
mov cl, byte [0x5c3834]
cmp al, cl
je 0x409bc4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x2c], edx
add ecx, edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x50]
add ecx, ebx
cmp ebx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
jge 0x409bc4
test ecx, ecx
jle 0x409bc4
cmp edx, dword [esp + 0x74]
jge 0x409bc4
mov ecx, dword [esp + 0x34]
test ecx, ecx
jle 0x409bc4
mov ebp, dword [esp + 0x60]
xor edx, edx
movsx ecx, al
sub ecx, 0x20
mov eax, ecx
div ebp
mov edx, eax
imul edx, ebp
sub ecx, edx
mov edx, dword [esp + 0x58]
imul ecx, dword [esp + 0x54]
imul edx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], ecx
add eax, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
add eax, edx
test ebx, ebx
mov dword [esp + 0x48], eax
jge 0x409a8a
sub edx, ebx
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x38]
dec eax
cmp ebp, eax
jle 0x409aad
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x38], eax
sub edx, ebp
mov ebp, dword [esp + 0x10]
lea edx, [edx + ebp - 1]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x78]
test edx, edx
jge 0x409ac3
sub ecx, edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], ecx
mov ebp, dword [esp + 0x74]
lea eax, [ebp - 1]
cmp dword [esp + 0x34], eax
jle 0x409ae0
sub ecx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
lea ecx, [ecx + ebp - 1]
mov dword [esp + 0x44], ecx
fild dword [esp + 0x3c]
lea eax, [esi - 0x10]
mov ecx, 4
fmul dword [esp + 0x14]
fadd dword [esp + 0x18]
fst dword [esi - 4]
fild dword [esp + 0x40]
fmul dword [esp + 0x80]
fadd dword [esp + 0x84]
fst dword [esi]
fxch st(1)
fstp dword [esi + 0x18]
fild dword [esp + 0x48]
fmul dword [esp + 0x80]
fadd dword [esp + 0x84]
fst dword [esi + 0x1c]
fild dword [esp + 0x44]
fmul dword [esp + 0x14]
fadd dword [esp + 0x18]
fst dword [esi + 0x34]
fxch st(1)
fstp dword [esi + 0x38]
fstp dword [esi + 0x50]
fstp dword [esi + 0x54]
fild dword [esp + 0x2c]
fst dword [esi - 0x18]
fild dword [esp + 0x30]
fst dword [esi - 0x14]
fxch st(1)
fstp dword [esi + 4]
fild dword [esp + 0x38]
fst dword [esi + 8]
fild dword [esp + 0x34]
fst dword [esi + 0x20]
fxch st(1)
fstp dword [esi + 0x24]
fstp dword [esi + 0x3c]
fstp dword [esi + 0x40]
mov ebp, dword [esp + 0x20]
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x24]
mov dword [eax], ebp
add eax, 0x1c
dec ecx
jne 0x409b6b
mov eax, dword [esp + 0x88]
mov ebp, dword [esp + 0x8c]
add esi, 0x70
lea eax, [eax + ebp*4]
mov word [edi - 4], ax
mov word [edi + 2], ax
lea ecx, [eax + 1]
mov word [edi - 2], cx
lea ecx, [eax + 2]
add eax, 3
inc ebp
mov word [edi], cx
mov word [edi + 4], cx
mov word [edi + 6], ax
mov dword [esp + 0x8c], ebp
add edi, 0xc
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
add edx, ecx
mov ecx, dword [esp + 0x70]
inc eax
mov dword [esp + 0x78], edx
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x4099e0
mov eax, dword [0x5e687c]
mov esi, dword [esp + 0x28]
mov ecx, dword [eax + 8]
dec ecx
mov dword [eax + 8], ecx
mov edx, dword [0x5e687c]
cmp dword [edx + 8], esi
je 0x409c2a
push 0x80000005
call fcn.0047c0a0
push eax
push str.CharsetProcessString
push 0xee
push str.c:_daily_rwsdk_tool_charse_chrprint.c
push 2
call fcn.0047bec0
mov eax, dword [0x5e687c]
add esp, 0x18
mov dword [eax + 8], esi
mov ecx, dword [0x5e687c]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x409c59
test esi, esi
jne 0x409c59
push str.Exit
push str.CharsetProcessString
push 0xee
push str.c:_daily_rwsdk_tool_charse_chrprint.c
push 4
call fcn.0047bec0
add esp, 0x14
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x58
ret