Function at 0x41f800
Capabilities:
Get file size
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44b200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebp
mov byte [esp + 0x4c], 0
mov esi, dword [esp + 0x90]
cmp dword [esi + 0x14], ebp
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x88], ebp
je 0x420374
cmp dword [ebx + 0x14], ebp
je 0x420374
push esi
call fcn.0041d710
push ebx
call fcn.0041d710
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 0x14]
add esp, 8
cmp ecx, ebp
jbe 0x41f882
push eax
call fcn.0041d710
add esp, 4
mov edx, dword [esi + 0x18]
cmp edx, 0x10
lea eax, [esi + 4]
jb 0x41f891
mov ecx, dword [eax]
jmp 0x41f893
mov ecx, eax
cmp byte [ecx], 0x3c
je 0x41f907
push 0x33
push str.Warning:_cant_write_value_to_file__storage_name:__
lea ecx, [esp + 0x50]
call fcn.00401ab0
push 0xffffffffffffffff
push ebp
push esi
lea ecx, [esp + 0x54]
call fcn.0040b9c0
push 0x13
push str.___variable_name:__
lea ecx, [esp + 0x50]
call fcn.0040bab0
push 0xffffffffffffffff
push ebp
push ebx
lea ecx, [esp + 0x54]
call fcn.0040b9c0
push 1
push 0x44f7ac
lea ecx, [esp + 0x50]
call fcn.0040bab0
lea eax, [esp + 0x48]
push eax
lea ecx, [edi + 0x2dc]
call fcn.0040bcc0
cmp dword [esp + 0x60], 0x10
jb 0x4203e2
mov ecx, dword [esp + 0x4c]
push ecx
jmp 0x4203da
cmp edx, 0x10
jb 0x41f90e
mov eax, dword [eax]
push ebp
push ebp
push 3
push ebp
push ebp
lea esi, [eax + 1]
push 0xc0000000
push esi
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x24], ebp
jne 0x41f9d0
push 0xa
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043d549
add esp, 0xc
push str.Warning:_cant_write__
lea ecx, [esp + 0x4c]
call fcn.00403bf0
push ebp
push 0
push ebx
lea ecx, [esp + 0x54]
call fcn.0040b9c0
push str.__variable_into_file
lea ecx, [esp + 0x4c]
call fcn.0040bc00
push esi
lea ecx, [esp + 0x4c]
call fcn.0040bc00
push str.__error_code:
lea ecx, [esp + 0x4c]
call fcn.0040bc00
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040bc00
lea ecx, [esp + 0x48]
push ecx
lea ecx, [edi + 0x2dc]
call fcn.0040bcc0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
call fcn.00401850
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 0xc
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0
call edi
test eax, eax
je 0x41fa72
push 0xa
lea edx, [esp + 0x3c]
push edx
call edi
push eax
call fcn.0043d549
add esp, 0xc
push str.Warning:_cant_determine_size_of_file
lea ecx, [esp + 0x4c]
call fcn.00403bf0
push esi
lea ecx, [esp + 0x4c]
call fcn.0040bc00
push str.__error_code:
lea ecx, [esp + 0x4c]
call fcn.0040bc00
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040bc00
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x2dc
call fcn.0040bcc0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
call fcn.00401850
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 0xc
lea esi, [ebx + 1]
push esi
call fcn.0043bc93
mov edx, eax
mov ecx, esi
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
add esp, 4
mov ecx, esi
and ecx, 3
push 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebx
push edx
push ebp
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41fb42
push 0xa
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043d549
add esp, 0xc
push str.Warning:_cant_read_file
lea ecx, [esp + 0x4c]
call fcn.00403bf0
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x4c]
call fcn.0040bc00
push str.__error_code:
lea ecx, [esp + 0x4c]
call fcn.0040bc00
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040bc00
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x2dc
call fcn.0040bcc0
mov edx, dword [esp + 0x14]
push edx
call fcn.0043c389
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
call fcn.00401850
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 0xc
mov edi, dword [esp + 0x94]
mov byte [esp + 0x13], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
xor esi, esi
mov ebp, 0x10
nop
cmp dword [edi + 0x18], ebp
jb 0x41fb6a
mov ecx, dword [edi + 4]
jmp 0x41fb6d
lea ecx, [edi + 4]
mov eax, dword [esi + 0x44f1a8]
push eax
push ecx
call fcn.0043cd34
add esp, 8
test eax, eax
je 0x41fb8b
add esi, 4
cmp esi, 0x64
jb 0x41fb60
jmp 0x41fb90
mov byte [esp + 0x13], 1
mov eax, dword [edi + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [str._general_]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fba0
sub eax, edx
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x28], eax
jle 0x41fe9b
mov esi, dword [esp + 0x14]
jmp 0x41fbc0
push 1
lea edi, [esi + ebp]
push edi
push 0x44fd68
call fcn.0043d960
add esp, 0xc
test eax, eax
jne 0x41fc2f
lea ecx, [ebp + 1]
cmp ecx, ebx
jge 0x41fbfc
mov edx, 1
mov eax, edi
sub edx, esi
mov cl, byte [eax]
cmp cl, 0xd
je 0x41fbfc
cmp cl, 0xa
je 0x41fbfc
inc ebp
inc eax
lea ecx, [edx + eax]
cmp ecx, ebx
jl 0x41fbe7
lea edx, [ebp + 1]
cmp edx, ebx
jge 0x41fe93
mov edx, 1
lea eax, [esi + ebp]
sub edx, esi
mov cl, byte [eax]
cmp cl, 0xd
je 0x41fc21
cmp cl, 0xa
jne 0x41fe93
inc ebp
inc eax
lea ecx, [eax + edx]
cmp ecx, ebx
jl 0x41fc11
jmp 0x41fe93
mov edx, dword [esp + 0x20]
mov cl, byte [esp + 0x13]
lea eax, [edx + ebp]
cmp eax, ebx
jge 0x41fd61
test cl, cl
je 0x41fd61
mov dl, byte [esp + 0x11]
test dl, dl
je 0x41fd61
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x18]
add eax, 4
cmp ecx, 0x10
jb 0x41fc6a
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
push ecx
push edi
push eax
call fcn.0043d960
add esp, 0xc
test eax, eax
jne 0x41fe8e
add ebp, dword [esp + 0x20]
cmp ebp, ebx
jge 0x41fc9b
lea esp, [esp]
cmp byte [esi + ebp], 0x20
jne 0x41fc9b
inc ebp
cmp ebp, ebx
jl 0x41fc90
mov edi, dword [0x45fce8]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fca6
sub eax, edx
add eax, ebp
cmp eax, ebx
jb 0x420097
push str.Warning:_unexpected_end_of_file_while_trying_to_write_value_to_file
lea ecx, [esp + 0x4c]
call fcn.00403bf0
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040bc00
push str.__variable:
lea ecx, [esp + 0x4c]
call fcn.0040bc00
mov edx, dword [esp + 0x94]
push 0xffffffffffffffff
push 0
push edx
lea ecx, [esp + 0x54]
call fcn.0040b9c0
push str.__value:
lea ecx, [esp + 0x4c]
call fcn.0040bc00
mov eax, dword [esp + 0x98]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x54]
call fcn.0040b9c0
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x2dc
call fcn.0040bcc0
push esi
call fcn.0043c389
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
call fcn.00401850
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 0xc
mov edx, dword [esp + 0x28]
lea esi, [edx + ebp]
cmp esi, ebx
jge 0x41fda5
test cl, cl
je 0x41fdad
mov dl, byte [esp + 0x11]
test dl, dl
jne 0x41fda5
mov eax, dword [esp + 0x28]
mov ecx, dword [str._general_]
push eax
push edi
push ecx
call fcn.0043d960
add esp, 0xc
test eax, eax
jne 0x41fe8e
mov ebp, esi
mov byte [esp + 0x11], 1
mov byte [esp + 0x12], al
jmp 0x41fe8e
test cl, cl
jne 0x41fe4f
mov cl, byte [esp + 0x12]
test cl, cl
jne 0x41fe4f
cmp byte [esp + ebp + 0x38], 0x5b
jne 0x41fe8e
cmp ebp, ebx
jge 0x41fdd4
cmp byte [esp + ebp + 0x38], 0x5d
je 0x41fe48
inc ebp
cmp ebp, ebx
jl 0x41fdc8
push str.Warning:_file_has_invalid_format:
lea ecx, [esp + 0x4c]
call fcn.00403bf0
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040bc00
push 0x44f474
lea ecx, [esp + 0x4c]
call fcn.0040bc00
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x2dc
call fcn.0040bcc0
mov edx, dword [esp + 0x14]
push edx
call fcn.0043c389
mov eax, dword [esp + 0x28]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
call fcn.00401850
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 0xc
mov byte [esp + 0x12], 1
jmp 0x41fe8e
cmp eax, ebx
jge 0x41fe8e
mov al, byte [esp + 0x11]
test al, al
jne 0x41fe8e
mov al, byte [esp + 0x12]
test al, al
je 0x41fe8e
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x18]
add eax, 4
cmp ecx, 0x10
jb 0x41fe77
mov eax, dword [eax]
mov edx, dword [esp + 0x20]
push edx
push edi
push eax
call fcn.0043d960
add esp, 0xc
test eax, eax
je 0x41ff6f
mov esi, dword [esp + 0x14]
inc ebp
cmp ebp, ebx
jl 0x41fbc0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0043c389
mov esi, dword [esp + 0x28]
add esp, 4
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x41ff7e
push 0xa
lea edx, [esp + 0x3c]
push edx
call ebx
push eax
call fcn.0043d549
add esp, 0xc
push str.Warning:_searched_variable_not_found__appending_failed_
lea ecx, [esp + 0x4c]
call fcn.00403bf0
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040bc00
push str.__variable:
lea ecx, [esp + 0x4c]
call fcn.0040bc00
mov ecx, dword [esp + 0x94]
push 0xffffffffffffffff
push 0
push ecx
lea ecx, [esp + 0x54]
call fcn.0040b9c0
push str.__error_code:
lea ecx, [esp + 0x4c]
call fcn.0040bc00
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x4c]
call fcn.0040bc00
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
add ecx, 0x2dc
call fcn.0040bcc0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
call fcn.00401850
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 0xc
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
add ebp, eax
jmp 0x41fc85
push str._r_n_Variables__r_n
lea ecx, [esp + 0x68]
call fcn.004166d0
mov ecx, dword [esp + 0x94]
push 0xffffffffffffffff
push 0
push ecx
lea ecx, [esp + 0x70]
mov byte [esp + 0x94], 1
call fcn.0040b9c0
mov edx, dword [0x45fce8]
push edx
lea ecx, [esp + 0x68]
call fcn.0040bc00
mov eax, dword [esp + 0x98]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x70]
call fcn.0040b9c0
push 0x44e9e8
lea ecx, [esp + 0x68]
call fcn.0040bc00
cmp dword [esp + 0x7c], 0x10
mov eax, dword [esp + 0x68]
mov dword [esp + 0x2c], 0
jae 0x41fff3
lea eax, [esp + 0x68]
mov edx, dword [esp + 0x78]
push 0
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x420069
push 0xa
lea eax, [esp + 0x3c]
push eax
call ebx
push eax
call fcn.0043d549
add esp, 0xc
push str.Warning:_cant_write_variable_into_file
lea ecx, [esp + 0x4c]
call fcn.00403bf0
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040bc00
push str.__error_code:
lea ecx, [esp + 0x4c]
call fcn.0040bc00
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x4c]
call fcn.0040bc00
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
add ecx, 0x2dc
call fcn.0040bcc0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x64]
call fcn.00401850
lea ecx, [esp + 0x48]
call fcn.00401850
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 0xc
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4200a0
sub eax, edx
push eax
lea eax, [esi + ebp]
push edi
push eax
call fcn.0043d960
add esp, 0xc
test eax, eax
je 0x4200ff
push str.Warning:_file_has_invalid_format:
lea ecx, [esp + 0x4c]
call fcn.00403bf0
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040bc00
push 0x44f474
lea ecx, [esp + 0x4c]
call fcn.0040bc00
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x48]
push edx
add ecx, 0x2dc
call fcn.0040bcc0
push esi
jmp 0x41fe17
mov ecx, dword [esp + 0x98]
mov edx, dword [ecx + 0x14]
mov eax, dword [esp + 0x2c]
lea eax, [edx + eax + 0xa]
lea esi, [eax + 1]
push esi
inc ebp
call fcn.0043bc93
mov ecx, esi
mov esi, dword [esp + 0x18]
mov edx, ecx
shr ecx, 2
mov ebx, eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebp
mov eax, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x9c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [eax + 0x18]
mov ecx, dword [eax + 0x14]
add esp, 4
cmp esi, 0x10
lea edx, [ecx + ebp]
jb 0x420164
mov esi, dword [eax + 4]
jmp 0x42016e
mov esi, dword [esp + 0x98]
add esi, 4
mov eax, ecx
shr ecx, 2
lea edi, [ebx + ebp]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
cmp ebp, ecx
jge 0x4201b7
mov eax, dword [esp + 0x14]
jmp 0x420190
cmp byte [eax + ebp], 0x20
jl 0x42019d
inc ebp
cmp ebp, ecx
jl 0x420190
jmp 0x4201b7
cmp ebp, ecx
jge 0x4201b7
sub ecx, ebp
lea edi, [edx + ebx]
mov edx, ecx
shr ecx, 2
lea esi, [eax + ebp]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x42024b
push 0xa
lea eax, [esp + 0x3c]
push eax
call edi
push eax
call fcn.0043d549
add esp, 0xc
push str.Warning:_cant_set_file_pointer_to_FILE_BEGIN__file:
lea ecx, [esp + 0x4c]
call fcn.00403bf0
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040bc00
push str.__error_code:
lea ecx, [esp + 0x4c]
call fcn.0040bc00
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x4c]
call fcn.0040bc00
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
add ecx, 0x2dc
call fcn.0040bcc0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0043c389
push ebx
call fcn.0043c389
add esp, 8
push esi
jmp 0x41fe24
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4202cd
push 0xa
lea edx, [esp + 0x3c]
push edx
call edi
push eax
call fcn.0043d549
add esp, 0xc
push str.Warning:_cant_truncate_file:
lea ecx, [esp + 0x4c]
call fcn.00403bf0
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040bc00
push str.__error_code:
lea ecx, [esp + 0x4c]
call fcn.0040bc00
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040bc00
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x48]
push edx
add ecx, 0x2dc
call fcn.0040bcc0
mov eax, dword [esp + 0x14]
push eax
call fcn.0043c389
push ebx
call fcn.0043c389
add esp, 8
push esi
jmp 0x41fe24
mov eax, ebx
mov dword [esp + 0x34], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4202e0
push 0
lea ecx, [esp + 0x38]
push ecx
sub eax, edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42035b
push 0xa
lea edx, [esp + 0x3c]
push edx
call edi
push eax
call fcn.0043d549
add esp, 0xc
push str.Warning:_cant_write_to_file:
lea ecx, [esp + 0x4c]
call fcn.00403bf0
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040bc00
push str.__error_code:
lea ecx, [esp + 0x4c]
call fcn.0040bc00
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040bc00
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x48]
push edx
add ecx, 0x2dc
call fcn.0040bcc0
mov eax, dword [esp + 0x14]
push eax
call fcn.0043c389
push ebx
call fcn.0043c389
add esp, 8
push esi
jmp 0x41fe24
push 0x33
push str.Warning:_cant_write_value_to_file__storage_name:__
lea ecx, [esp + 0x50]
call fcn.00401ab0
push 0xffffffffffffffff
push ebp
push esi
lea ecx, [esp + 0x54]
call fcn.0040b9c0
push 0x13
push str.___variable_name:__
lea ecx, [esp + 0x50]
call fcn.0040bab0
push 0xffffffffffffffff
push ebp
push ebx
lea ecx, [esp + 0x54]
call fcn.0040b9c0
push 1
push 0x44f7ac
lea ecx, [esp + 0x50]
call fcn.0040bab0
lea ecx, [esp + 0x48]
push ecx
lea ecx, [edi + 0x2dc]
call fcn.0040bcc0
cmp dword [esp + 0x60], 0x10
jb 0x4203e2
mov edx, dword [esp + 0x4c]
push edx
call fcn.0043c389
add esp, 4
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x7c
ret 0xc