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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9bc
mov eax, dword [0x4d82d4]
xor eax, esp
mov dword [esp + 0x9b8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x3ff
push esi
mov dword [esp + 0x6c], eax
xor edi, edi
lea eax, [esp + 0x1c5]
mov ebx, ecx
push edi
push eax
mov dword [esp + 0x54], ebx
mov byte [esp + 0x1cc], 0
call fcn.00401f80
add esp, 0xc
push esi
lea eax, [esp + 0x5c5]
push edi
push eax
mov byte [esp + 0x5cc], 0
call fcn.00401f80
add esp, 0xc
push 9
pop eax
push 0xff
mov word [esp + 0x10], ax
lea eax, [esp + 0xc5]
push edi
push eax
mov dword [esp + 0x1c], edi
mov byte [esp + 0xcc], 0
call fcn.00401f80
add esp, 0xc
cmp ebx, edi
jne 0x457607
xor eax, eax
jmp 0x457f6f
mov ecx, dword [esp + 0x68]
call fcn.00457405
mov esi, dword [esp + 0x68]
push edi
mov dword [esp + 0x24], edi
mov dword [esp + 0xa0], edi
xor edi, edi
mov dword [esp + 0x94], eax
call fcn.0049ba1a
pop ecx
push esi
lea eax, [esp + 0x1c4]
push 0x3ff
push eax
call fcn.0049b71d
add esp, 0xc
test eax, eax
je 0x457f38
lea eax, [ebx - 0x2c]
mov dword [esp + 0x60], eax
lea eax, [ebx + 0x64]
mov dword [esp + 0x40], eax
lea eax, [ebx - 0x53]
mov dword [esp + 0x58], eax
lea eax, [ebx + 0x3d]
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x24], eax
lea eax, [ebx - 0x80]
mov dword [esp + 0x50], eax
lea eax, [ebx - 3]
mov dword [esp + 0x70], eax
lea eax, [ebx + 0x8d]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x68]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x8c]
mov dword [esp + 0x88], eax
lea eax, [ebx + 0x88]
mov dword [esp + 0x78], eax
lea eax, [ebx - 0x28]
mov dword [esp + 0x80], eax
lea eax, [ebx + 0x62]
mov dword [esp + 0x34], eax
lea eax, [ebx + 0x3e]
mov dword [esp + 0x8c], eax
and dword [esp + 0x94], edi
lea eax, [ebx + 0x18]
mov dword [esp + 0x30], eax
and dword [esp + 0x2c], edi
lea eax, [ebx + 0x14]
mov dword [esp + 0x44], eax
lea eax, [ebx + 0x40]
mov dword [esp + 0x38], eax
lea eax, [ebx + 0x46]
mov dword [esp + 0x3c], eax
lea eax, [ebx + 0x42]
mov dword [esp + 0x6c], eax
lea eax, [ebx + 0x3f]
mov dword [esp + 0x84], eax
lea eax, [ebx + 0x58]
mov dword [esp + 0x64], eax
lea eax, [ebx + 0x4c]
mov dword [esp + 0x4c], eax
lea eax, [ebx + 0x1c]
mov dword [esp + 0x28], eax
lea eax, [ebx + 0x4a]
mov dword [esp + 0x5c], eax
lea eax, [ebx - 0x84]
mov dword [esp + 0x74], eax
lea eax, [ebx + 0xc]
lea edi, [ebx + 8]
mov dword [esp + 0x54], eax
mov dword [esp + 0x7c], edi
jmp 0x457733
mov edi, dword [esp + 0x7c]
mov esi, 0x90
push esi
push 0
push edi
call fcn.00401f80
add esp, 0xc
lea edx, [esp + 0x1c0]
mov dword [edi], esi
call fcn.00439c56
test eax, eax
jne 0x457f17
cmp byte [esp + 0x1c0], 0x3b
je 0x457f17
lea eax, [esp + 0x1c0]
push str.END_Invoice_Definition_Table
push eax
call fcn.00401b10
pop ecx
pop ecx
test eax, eax
jne 0x457f38
lea eax, [esp + 0x1c0]
push str.There_are_no_parts_matching_the_selection_criteria__please_try_again...
push eax
call fcn.00401b10
pop ecx
pop ecx
test eax, eax
je 0x4577ac
mov dword [esp + 0x9c], 1
jmp 0x457f17
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0x5c4]
push eax
call fcn.00401ba0
and dword [esp + 0xa0], 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x1cc]
call fcn.004390d0
add esp, 0xc
test eax, eax
je 0x457f17
push eax
call fcn.00402c7e
pop ecx
mov ecx, dword [esp + 0x54]
mov dword [ecx], eax
test eax, eax
jle 0x457f17
cmp dword [esp + 0x20], 0
jle 0x457818
mov ecx, dword [esp + 0x74]
cmp eax, dword [ecx]
jne 0x457818
mov dword [esp + 0x98], 1
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
pop ecx
test eax, eax
je 0x457f17
push eax
call fcn.00402c7e
pop ecx
mov ecx, dword [esp + 0x5c]
mov word [ecx], ax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
pop ecx
test eax, eax
je 0x457f17
push eax
mov ecx, 0x100
lea eax, [esp + 0xc4]
call fcn.00438b01
pop ecx
call fcn.0043983b
lea eax, [esp + 0xc0]
push eax
mov eax, dword [esp + 0x2c]
push 0x21
pop ecx
call fcn.00438b01
pop ecx
mov edx, eax
call fcn.00439c56
test eax, eax
je 0x4578a2
mov eax, dword [esp + 0x28]
push str.Unknown_Account_Name
push 0x21
pop ecx
call fcn.00438b01
pop ecx
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
pop ecx
test eax, eax
je 0x457f17
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.0041ca25
mov esi, eax
lea edi, [esp + 0xa8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0x54]
movsd dword es:[edi], dword [esi]
pop ecx
pop ecx
movsd dword es:[edi], dword [esi]
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, ebx
movsd dword es:[edi], dword [esi]
call fcn.0041c6e7
add esp, 0x14
call fcn.00455611
mov ecx, dword [esp + 0x64]
sub esp, 0x10
lea esi, [esp + 0xb0]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ecx], eax
movsd dword es:[edi], dword [esi]
call fcn.0041c05c
mov esi, eax
push esi
call fcn.0041c00d
add esp, 0x14
test eax, eax
je 0x457f13
mov eax, dword [esp + 0x48]
mov dword [eax], esi
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
pop ecx
test eax, eax
je 0x457f13
push eax
call fcn.00402c7e
pop ecx
mov ecx, dword [esp + 0x84]
mov byte [ecx], al
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
mov esi, eax
pop ecx
test esi, esi
je 0x457f13
push esi
call fcn.00402c7e
mov edi, dword [esp + 0x94]
pop ecx
mov ebx, eax
call fcn.00443ad0
mov edi, dword [esp + 0x38]
mov word [edi], ax
test ax, ax
jne 0x45799b
push esi
call fcn.00402c7e
pop ecx
mov word [edi], ax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
mov esi, eax
pop ecx
test esi, esi
je 0x457f13
push esi
call fcn.00402c7e
mov edi, dword [esp + 0x94]
pop ecx
mov ebx, eax
call fcn.00443ad0
mov edi, dword [esp + 0x6c]
mov word [edi], ax
test ax, ax
jne 0x4579e1
push esi
call fcn.00402c7e
pop ecx
mov word [edi], ax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
mov edi, eax
pop ecx
test edi, edi
je 0x457f13
push edi
call fcn.00402c7e
pop ecx
test eax, eax
jle 0x457a3c
mov esi, dword [esp + 0x38]
mov ax, word [esi]
mov ecx, dword [esp + 0x3c]
push edi
mov word [ecx], ax
call fcn.00402c7e
mov edi, dword [esp + 0x94]
pop ecx
mov ebx, eax
call fcn.00443ad0
mov word [esi], ax
test ax, ax
jne 0x457a3c
mov eax, dword [esp + 0x3c]
mov ax, word [eax]
mov word [esi], ax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
pop ecx
test eax, eax
je 0x457f13
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
pop ecx
test eax, eax
je 0x457f13
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
pop ecx
test eax, eax
je 0x457f13
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
pop ecx
test eax, eax
je 0x457f13
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
pop ecx
test eax, eax
je 0x457f13
call fcn.0046efd8
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
pop ecx
test eax, eax
je 0x457f13
call fcn.0046efd8
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
pop ecx
test eax, eax
je 0x457f13
call fcn.0046efd8
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
mov dword [edx], eax
test ecx, ecx
je 0x457b20
sub eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [edx], eax
mov dword [ecx], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
mov edi, eax
pop ecx
test edi, edi
je 0x457f13
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
mov ebx, eax
pop ecx
test ebx, ebx
je 0x457f13
mov esi, dword [esp + 0x8c]
push edi
mov byte [esi], 0
call fcn.00402c7e
dec eax
pop ecx
je 0x457b77
dec eax
je 0x457bfc
dec eax
jne 0x457b89
mov byte [esi], 1
push ebx
call fcn.00402c7e
pop ecx
call fcn.00454747
mov ecx, dword [esp + 0x14]
mov byte [ecx], al
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
pop ecx
test eax, eax
je 0x457f13
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
pop ecx
test eax, eax
je 0x457f13
push eax
mov edi, 0x100
mov ecx, edi
lea eax, [esp + 0xc4]
call fcn.00438b01
pop ecx
mov esi, eax
call fcn.0043984e
cmp byte [esp + 0xc0], 0x31
je 0x457c05
movsx eax, byte [esp + 0xc0]
call fcn.00438be3
cmp eax, 0x59
je 0x457c05
mov eax, dword [esp + 0x34]
mov byte [eax], 0
jmp 0x457c0c
mov eax, dword [esp + 0x14]
mov byte [eax], 9
jmp 0x457b89
mov eax, dword [esp + 0x34]
mov byte [eax], 1
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
mov byte [ebx], 0
call fcn.004390d0
pop ecx
test eax, eax
je 0x457c66
push eax
mov ecx, edi
lea eax, [esp + 0xc4]
call fcn.00438b01
pop ecx
mov esi, eax
call fcn.0043984e
cmp byte [esp + 0xc0], 0x31
je 0x457c5b
movsx eax, byte [esp + 0xc0]
call fcn.00438be3
cmp eax, 0x59
jne 0x457c66
mov eax, dword [esp + 0x14]
mov cl, byte [eax]
mov byte [ebx], cl
mov byte [eax], 0
cmp dword [esp + 0x98], 0
mov esi, dword [esp + 0x18]
jne 0x457c79
and dword [esi], 0
jmp 0x457c93
mov eax, dword [esp + 0x18]
cmp dword [eax], 4
jge 0x457c93
mov eax, dword [esp + 0x80]
inc dword [eax]
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
pop ecx
test eax, eax
jne 0x457cbe
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
add eax, dword [esp + 0x2c]
mov ecx, dword [ecx]
mov edi, dword [esp + 0x48]
mov dword [edi + eax*4 + 0x74], ecx
jmp 0x457cd3
call fcn.0046efd8
mov ecx, dword [esi]
add ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x48]
mov dword [edx + ecx*4 + 0x74], eax
mov edi, edx
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x94]
mov ecx, dword [esi]
mov dl, byte [edx]
lea eax, [edi + ebx]
mov byte [eax + ecx + 0x6c], dl
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov ecx, dword [esp + 0x78]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov al, byte [eax]
mov ecx, dword [esp + 0x88]
mov byte [ecx], al
mov eax, dword [esp + 0x1c]
mov byte [eax], 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
xor ecx, ecx
call fcn.004390d0
mov edx, eax
pop ecx
mov dword [esp + 0x94], edx
call fcn.00439c56
test eax, eax
jne 0x457d61
and dword [esp + 0x18], eax
mov edx, dword [esp + 0x94]
mov al, byte [edx]
test al, al
je 0x457d61
call fcn.0043865f
test eax, eax
je 0x457d4c
inc dword [esp + 0x18]
inc edx
mov al, byte [edx]
test al, al
jne 0x457d3f
cmp dword [esp + 0x18], 4
jl 0x457d61
mov eax, dword [esp + 0x1c]
mov byte [eax], 1
cmp dword [esp + 0x98], 0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi]
mov dl, byte [edx]
lea eax, [edi + ebx]
mov byte [eax + ecx + 0x8e], dl
je 0x457e82
lea eax, [edi + ebx]
add eax, dword [esi]
mov cl, byte [eax + 0x6c]
mov byte [eax - 0x24], cl
mov eax, dword [esi]
add eax, dword [esp + 0x2c]
mov ecx, dword [edi + eax*4 + 0x74]
mov dword [edi + eax*4 - 0x1c], ecx
mov eax, dword [esi]
add edi, ebx
mov cl, byte [eax + edi + 0x8e]
mov byte [eax + edi - 2], cl
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x457db9
mov eax, dword [esp + 0x70]
mov byte [eax], 1
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax]
push ecx
call fcn.004544e8
add esp, 4
test eax, eax
je 0x457dfa
push ecx
call fcn.0045447e
add esp, 4
test eax, eax
jne 0x457dfa
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [esp + 0x50]
cmp eax, dword [edx]
jne 0x457dfa
mov eax, dword [esp + 0x58]
mov byte [eax], cl
mov eax, dword [esp + 0x40]
mov al, byte [eax]
mov ecx, dword [esp + 0x60]
mov byte [ecx], al
dec dword [esp + 0x20]
sub dword [esp + 0x2c], 0x24
mov eax, 0x90
sub dword [esp + 0x7c], eax
sub dword [esp + 0x54], eax
sub dword [esp + 0x74], eax
sub dword [esp + 0x5c], eax
sub dword [esp + 0x28], eax
sub dword [esp + 0x4c], eax
sub dword [esp + 0x64], eax
sub dword [esp + 0x84], eax
sub dword [esp + 0x6c], eax
sub dword [esp + 0x3c], eax
sub dword [esp + 0x38], eax
sub dword [esp + 0x44], eax
sub dword [esp + 0x30], eax
sub dword [esp + 0x8c], eax
sub dword [esp + 0x34], eax
sub dword [esp + 0x80], eax
sub dword [esp + 0x78], eax
sub dword [esp + 0x88], eax
sub dword [esp + 0x1c], eax
sub dword [esp + 0x70], eax
sub dword [esp + 0x50], eax
sub dword [esp + 0x24], eax
sub dword [esp + 0x14], eax
sub dword [esp + 0x58], eax
sub dword [esp + 0x40], eax
sub ebx, eax
sub esi, eax
sub dword [esp + 0x60], eax
jmp 0x457e87
mov eax, 0x90
inc dword [esp + 0x20]
add dword [esp + 0x2c], 0x24
add dword [esp + 0x7c], eax
add dword [esp + 0x54], eax
add dword [esp + 0x74], eax
add dword [esp + 0x5c], eax
add dword [esp + 0x28], eax
add dword [esp + 0x4c], eax
add dword [esp + 0x64], eax
add dword [esp + 0x84], eax
add dword [esp + 0x6c], eax
add dword [esp + 0x3c], eax
add dword [esp + 0x38], eax
add dword [esp + 0x44], eax
add dword [esp + 0x30], eax
add dword [esp + 0x8c], eax
add dword [esp + 0x34], eax
add dword [esp + 0x80], eax
add dword [esp + 0x78], eax
add dword [esp + 0x88], eax
add dword [esp + 0x1c], eax
add dword [esp + 0x70], eax
add dword [esp + 0x50], eax
add dword [esp + 0x24], eax
add dword [esp + 0x14], eax
add dword [esp + 0x58], eax
add dword [esp + 0x40], eax
add ebx, eax
add esi, eax
add dword [esp + 0x60], eax
mov dword [esp + 0x94], ebx
mov dword [esp + 0x18], esi
mov ebx, dword [esp + 0x48]
push dword [esp + 0x68]
lea eax, [esp + 0x1c4]
push 0x3ff
push eax
call fcn.0049b71d
add esp, 0xc
test eax, eax
jne 0x45772f
mov esi, dword [esp + 0x68]
push 0
xor edi, edi
call fcn.0049ba1a
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x94]
pop ecx
mov dword [ebx + 4], edi
call fcn.004439b6
test edi, edi
jne 0x457f6b
cmp dword [esp + 0x9c], edi
jne 0x457f6b
or dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x9c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret