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

Disassembly:
mov eax, 0x12c8c
call fcn.004303c0
push esi
push edi
lea eax, [esp + 0x10]
xor edi, edi
push eax
mov dword [esp + 0xc], edi
call fcn.0042faad
mov ecx, dword [0x4426f8]
mov edx, dword [0x4426fc]
mov eax, dword [0x4426f4]
add edx, ecx
add esp, 4
add edx, eax
jne 0x408e1a
mov esi, dword [esp + 0x12c9c]
push str.____n
push esi
call fcn.0042f960
mov eax, dword [0x4c20e0]
mov ecx, dword [eax]
add ecx, 0x3dc
push ecx
push str.___Targeted_Device:__s_n
push esi
call fcn.0042f960
lea edx, [esp + 0x24]
push edx
call fcn.004303a6
push eax
push str.___Date_:__s
push esi
call fcn.0042f960
mov edx, dword [0x43f51c]
mov eax, dword [str.Version_8.2.01]
mov ecx, dword [0x43f518]
mov dword [esp + 0x40], edx
mov dword [esp + 0x38], eax
mov ax, word [0x43f520]
mov dword [esp + 0x3c], ecx
mov cl, byte [0x43f522]
lea edx, [esp + 0x38]
push 0x2e
push edx
mov word [esp + 0x4c], ax
mov byte [esp + 0x4e], cl
call fcn.0042ffe0
mov byte [eax], 0
lea eax, [esp + 0x40]
push eax
push str.___Software__s_n
push esi
call fcn.0042f960
push str.____n
push esi
call fcn.0042f960
add esp, 0x40
push ebx
call fcn.0040a040
mov ecx, dword [0x4b88e4]
mov edx, dword [ecx + 0xc]
mov ebx, dword [edx + 0x12c]
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x409359
mov edi, dword [esp + 0x12c9c]
push ebp
lea ebp, [esp + 0x9c]
jmp 0x408e50
mov ebx, dword [esp + 0x14]
movsx eax, word [ebx + 0x18]
dec eax
cmp eax, 0x14
ja case.0x408e66.3
xor ecx, ecx
mov cl, byte [eax + 0x4093d0]
jmp dword [ecx*4 + 0x4093c4]
mov ax, word [ebx + 0x16]
cmp ax, 7
jne 0x408ea9
mov edx, dword [esp + 0x10]
mov eax, ebp
inc edx
add ebp, 0x80
mov dword [esp + 0x10], edx
lea edx, [ebx + 0xc]
push edx
push 0x43f6cc
push 0x43f6c8
push str._32s_t_6s_t_6s
push eax
call fcn.0042ff84
add esp, 0x14
jmp case.0x408e66.3
cmp ax, 4
jne 0x408f82
mov word [ebx + 0x18], 0xc
movsx edx, word [ebx + 0x1e]
movsx eax, word [ebx + 0x1c]
movsx ecx, word [ebx + 0x1a]
push edx
push eax
movsx edx, word [ebx + 0x18]
push ecx
push edx
call fcn.0040a520
mov esi, eax
add esp, 0x10
test esi, esi
je case.0x408e66.3
mov eax, dword [esi + 8]
push eax
call fcn.0040eef0
mov ebx, eax
mov eax, dword [esi + 0x44]
add esp, 4
cmp eax, 0xf
je 0x408f29
movsx edx, byte [esi + 0x40]
mov ecx, dword [esi + 0x48]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x10]
add eax, 0xc
push edx
mov edx, dword [esi + 0xc]
push eax
push ecx
mov ecx, dword [esi]
movsx eax, bx
push edx
add ecx, 0x110
push eax
push ecx
push str.XIO__s__d__d__d__s__c__d__n
push edi
call fcn.0042f960
add esp, 0x24
mov ecx, dword [esp + 0x14]
cmp word [ecx + 0x18], 1
jne 0x409010
mov edx, dword [esi]
push edx
call fcn.0040ed00
add esp, 4
sub eax, 0
je 0x408fe7
dec eax
je 0x408fbe
dec eax
jne 0x409041
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc edx
mov eax, ebp
mov dword [esp + 0x10], edx
mov edx, dword [esi]
add ecx, 0xc
add ebp, 0x80
push ecx
add edx, 0x110
push str.BIDI
push edx
jmp 0x409033
cmp ax, 8
jne case.0x408e66.1
mov ecx, dword [esp + 0x10]
mov eax, ebp
inc ecx
add ebp, 0x80
mov dword [esp + 0x10], ecx
lea ecx, [ebx + 0xc]
push ecx
push 0x43f6cc
push 0x43f690
push str._32s_t_6s_t_6s
push eax
call fcn.0042ff84
add esp, 0x14
jmp case.0x408e66.3
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc edx
mov eax, ebp
mov dword [esp + 0x10], edx
mov edx, dword [esi]
add ecx, 0xc
add ebp, 0x80
push ecx
add edx, 0x110
push 0x43f68c
push edx
jmp 0x409033
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc edx
mov eax, ebp
mov dword [esp + 0x10], edx
mov edx, dword [esi]
add ecx, 0xc
add ebp, 0x80
push ecx
add edx, 0x110
push 0x43f688
push edx
jmp 0x409033
mov edx, dword [esp + 0x10]
add ecx, 0xc
push ecx
mov ecx, dword [esi]
mov eax, ebp
inc edx
add ebp, 0x80
add ecx, 0x110
push 0x43f688
mov dword [esp + 0x18], edx
push ecx
push str._32s_t_6s_t_6s
push eax
call fcn.0042ff84
add esp, 0x14
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4090a2
push str.IOK
push edi
call fcn.0042f960
mov eax, dword [esi + 0x64]
add esp, 8
cmp eax, 0xffffffff
je 0x409075
movsx edx, bx
push 0xffffffffffffffff
push edx
push eax
push str._d__d__d__n
push edi
call fcn.0042f960
add esp, 0x14
jmp 0x4090a2
mov eax, dword [esi + 0x68]
test eax, eax
je 0x4090a2
mov eax, dword [eax + 0x1c]
push eax
call fcn.00408a90
mov ecx, dword [esi + 0x68]
add eax, 0x32
mov edx, dword [ecx + 0x1c]
movsx ecx, bx
push edx
push ecx
push eax
push str._d__d__d__n
push edi
call fcn.0042f960
add esp, 0x18
mov eax, dword [esi + 0x78]
test eax, eax
je 0x409103
push str.IOKE
push edi
call fcn.0042f960
mov eax, dword [esi + 0x70]
add esp, 8
cmp eax, 0xffffffff
je 0x4090d6
movsx edx, bx
push 0xffffffffffffffff
push edx
push eax
push str._d__d__d__n
push edi
call fcn.0042f960
add esp, 0x14
jmp 0x409103
mov eax, dword [esi + 0x74]
test eax, eax
je 0x409103
mov eax, dword [eax + 0x1c]
push eax
call fcn.00408a90
mov ecx, dword [esi + 0x74]
add eax, 0x32
mov edx, dword [ecx + 0x1c]
movsx ecx, bx
push edx
push ecx
push eax
push str._d__d__d__n
push edi
call fcn.0042f960
add esp, 0x18
mov eax, dword [esi + 0x84]
test eax, eax
je 0x40917b
push str.IOOE
push edi
call fcn.0042f960
mov eax, dword [esi + 0x7c]
add esp, 8
cmp eax, 0xffffffff
je 0x409141
mov ecx, dword [esi + 0x84]
push 0xffffffffffffffff
movsx edx, bx
push edx
push ecx
push eax
push str._d__s__d__d__n
push edi
call fcn.0042f960
add esp, 0x18
jmp 0x40917b
mov eax, dword [esi + 0x80]
test eax, eax
je 0x40917b
mov edx, dword [eax + 0x1c]
push edx
call fcn.00408a90
mov ecx, dword [esi + 0x80]
add eax, 0x32
mov edx, dword [ecx + 0x1c]
movsx ecx, bx
push edx
mov edx, dword [esi + 0x84]
push ecx
push edx
push eax
push str._d__s__d__d__n
push edi
call fcn.0042f960
add esp, 0x1c
mov eax, dword [esi + 0x50]
test eax, eax
je 0x409195
mov eax, dword [eax + 0x1c]
mov edx, dword [esi + 0x54]
movsx ecx, bx
push eax
push ecx
push edx
push str.IOR__s__d__d__n
jmp 0x4091a6
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4091af
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push str.IOR__s__d__d_n
push edi
call fcn.0042f960
add esp, 0x14
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4091d0
mov eax, dword [eax + 0x1c]
mov edx, dword [esi + 0x60]
movsx ecx, bx
push eax
push ecx
push edx
push str.IOS__s__d__d__n
push edi
call fcn.0042f960
add esp, 0x14
mov eax, dword [esi + 0x88]
test eax, eax
je 0x409217
mov eax, dword [eax + 0x1c]
mov edx, dword [esi + 0x8c]
movsx ecx, bx
push eax
push ecx
push edx
push str.IOCOE__s__d__d__n
push edi
call fcn.0042f960
mov eax, dword [esi + 0x94]
add esp, 0x14
test eax, eax
je 0x409217
mov ecx, dword [esi + 0x90]
push ecx
push eax
push str.tri_out_name__s__d__n
push edi
call fcn.0042f960
add esp, 0x10
mov esi, dword [esi + 0x98]
test esi, esi
je 0x409341
mov eax, dword [esi + 0x2c]
add eax, 0xfffffffb
cmp eax, 0xf
ja case.0x409238.6
xor edx, edx
mov dl, byte [eax + 0x4093f0]
jmp dword [edx*4 + 0x4093e8]
push str.IOSRC
push edi
call fcn.0042f960
add esp, 8
mov eax, dword [esi + 0x2c]
add eax, 0xfffffffb
cmp eax, 0xf
ja case.0x409258.8
jmp dword [eax*4 + 0x409400]
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
jne 0x409274
mov edx, dword [esi + 0x10]
mov eax, 0x13
sub eax, edx
shl eax, 2
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x24]
lea ecx, [ecx + ecx*4]
shl ecx, 4
add ecx, eax
lea eax, [edx + ecx*2]
mov edx, dword [esi + 0x18]
mov ecx, dword [eax*4 + 0x43b040]
add ecx, 0x18
push ecx
push edx
push str._R__d__d
jmp 0x4092a8
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0xc]
push eax
push ecx
push str._C__d__d
push edi
call fcn.0042f960
add esp, 0x10
mov eax, dword [esi + 0x2c]
add eax, 0xfffffffb
cmp eax, 0xf
ja case.0x4092bc.8
jmp dword [eax*4 + 0x409440]
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je case.0x4092bc.7
mov edx, dword [esi + 0xc]
push eax
push edx
push str._C__d__d
jmp 0x4092ef
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
push eax
push ecx
push str._R__d__d
jmp 0x4092ef
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.__d__d
push edi
call fcn.0042f960
add esp, 0x10
mov eax, dword [esi + 0x2c]
add eax, 0xfffffffb
cmp eax, 0xf
ja case.0x40930b.7
xor edx, edx
mov dl, byte [eax + 0x40948c]
jmp dword [edx*4 + 0x409480]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
push eax
push ecx
push str._R__d__d
jmp 0x40932a
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.__d__d
push edi
call fcn.0042f960
add esp, 0x10
push 0x43f5cc
push edi
call fcn.0042f960
add esp, 8
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 0x28]
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x408e4c
mov edi, dword [esp + 0x10]
pop ebp
push 0x4094a0
push 0x80
lea edx, [esp + 0xa0]
push edi
push edx
call fcn.004301d8
mov eax, dword [0x4426f8]
mov ecx, dword [0x4426fc]
add ecx, eax
mov eax, dword [0x4426f4]
add esp, 0x10
add ecx, eax
pop ebx
jne 0x4093b9
test edi, edi
jle 0x4093b9
mov edi, dword [esp + 8]
lea esi, [esp + 0x94]
mov edx, dword [esp + 0x12c9c]
push esi
push 0x43f5c8
push edx
call fcn.0042f960
add esp, 0xc
add esi, 0x80
dec edi
jne 0x40939a
pop edi
pop esi
add esp, 0x12c8c
ret