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

Disassembly:
push 0xffffffffffffffff
push 0x459086
mov eax, dword fs:[0]
push eax
sub esp, 0x294
push ebx
push ebp
push esi
push edi
mov eax, dword [0x475838]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x4c], esi
push 1
call fcn.0042a375
mov eax, dword [esi + 0x13c]
xor ebp, ebp
push ebp
push 9
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
push edi
lea ecx, [esi + 0x11c]
call fcn.0042e19d
mov ebx, eax
call fcn.00426da1
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4083eb
push 0x80004005
call fcn.00401c60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
xor esi, esi
cmp dword [0x476e98], ebp
mov dword [esp + 0x2b0], ebp
jle 0x408430
mov ebp, 0x476ea4
cmp dword [ebp - 4], ebx
jne 0x408420
push ebp
lea ecx, [esp + 0x38]
call fcn.00402730
add esi, 1
add ebp, 8
cmp esi, dword [0x476e98]
jl 0x408411
xor ebp, ebp
mov ebx, dword [esp + 0x4c]
mov ecx, dword [ebx + 0xe8]
push ebp
push ebp
push 0x147
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
call fcn.00426da1
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x408464
push 0x80004005
call fcn.00401c60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
push esi
lea ecx, [esp + 0x44]
push 0x4607e8
push ecx
mov byte [esp + 0x2bc], 1
call fcn.00407fe0
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.004012b0
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 2
call fcn.00401800
mov dword [esp + 0x2c], ebp
mov eax, dword [ebx + 0x170]
cmp edi, eax
mov byte [esp + 0x2b0], 3
je 0x40861c
cmp esi, ebp
je 0x4085bf
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x40]
push str.select__from_employees_where_depID
push eax
call fcn.00402990
push str._and_state
push eax
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0x2c8], 4
call fcn.004028b0
lea edx, [esp + 0x58]
push edx
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x2d4], 5
call fcn.004027f0
push 0x45f780
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x2e0], 6
call fcn.004028b0
add esp, 0x30
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x2b4], 7
call fcn.00407af0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x2b0], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408566
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2b0], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40858e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x2b0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4085b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
jmp 0x408693
cmp edi, eax
je 0x40861c
cmp esi, ebp
jne 0x408614
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x1c]
push str.select__from_employees_where_depID
push edx
call fcn.00402990
push 0x45f780
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x2c8], 8
call fcn.004028b0
add esp, 0x18
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x2b4], 9
call fcn.00407af0
mov byte [esp + 0x2b0], 8
jmp 0x40866f
cmp edi, eax
jne 0x4086b9
cmp esi, ebp
je 0x4086b9
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x1c]
push str.select__from_employees_where_state
push edx
call fcn.00402990
push 0x45f780
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x2c8], 0xa
call fcn.004028b0
add esp, 0x18
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x2b4], 0xb
call fcn.00407af0
mov byte [esp + 0x2b0], 0xa
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40868f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2b0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4086c7
push str.select__from_employees
lea ecx, [esp + 0x30]
call fcn.00407af0
push ecx
mov ecx, dword [esp + 0x30]
cmp ecx, ebp
mov eax, esp
mov dword [esp + 0x80], esp
mov dword [eax], ecx
je 0x4086e5
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x24]
call fcn.00401930
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.00401150
mov ecx, dword [esi]
mov esi, dword [eax]
cmp esi, ecx
je 0x40871b
cmp ecx, ebp
mov dword [eax], ecx
je 0x40870f
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ecx
call eax
cmp esi, ebp
je 0x40871b
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov dword [esp + 0x44], ebp
call fcn.00426da1
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x408739
push 0x80004005
call fcn.00401c60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x48], eax
mov byte [esp + 0x2b0], 0xc
call fcn.00426da1
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40876b
push 0x80004005
call fcn.00401c60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x30], edi
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x2b0], 0xd
lea esp, [esp]
lea ecx, [esp + 0x20]
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x4087a9
push 0x80004003
call fcn.004573a0
mov esi, dword [esi]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x50]
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], ebp
call eax
cmp eax, ebp
jge 0x4087cc
push 0x45f678
push esi
push eax
call fcn.004573b0
cmp word [esp + 0x14], bp
jne 0x4099c6
mov edi, dword [esp + 0x44]
lea eax, [edi + 1]
push eax
lea ecx, [esp + 0x4c]
push 0x4607e8
push ecx
mov dword [esp + 0x88], eax
call fcn.00407fe0
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
add esp, 0xc
push ebp
push ebp
push ebp
push ebp
push edx
push edi
add ecx, 0x74
push 1
mov dword [esp + 0x30], ecx
call fcn.0042e2ec
push str.empID
mov word [esp + 0x15c], 8
call fcn.004570b0
mov dword [esp + 0x160], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0xe
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x408850
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0x158]
push eax
lea edx, [esp + 0x19c]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x2b4], 0xf
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x10
je 0x40889f
cmp dword [esi + 4], ebp
jne 0x40889a
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4088a1
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 1
push edi
call fcn.0042e120
mov eax, dword [esp + 0x84]
cmp eax, ebp
mov byte [esp + 0x2b0], 0xf
je 0x408902
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x4088fb
cmp esi, ebp
je 0x4088fb
mov eax, dword [esi]
cmp eax, ebp
je 0x4088e2
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4088f2
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x84], ebp
lea ecx, [esp + 0x198]
push ecx
call ebx
lea edx, [esp + 0x158]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.empName
mov word [esp + 0x11c], 8
call fcn.004570b0
mov dword [esp + 0x120], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x11
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x40895a
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0x118]
push eax
lea edx, [esp + 0x22c]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x2b4], 0x12
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x13
je 0x4089a6
cmp dword [esi + 4], ebp
jne 0x4089a1
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4089a8
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 2
push edi
call fcn.0042e120
mov eax, dword [esp + 0x5c]
cmp eax, ebp
mov byte [esp + 0x2b0], 0x12
je 0x408a03
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x4089ff
cmp esi, ebp
je 0x4089ff
mov eax, dword [esi]
cmp eax, ebp
je 0x4089e6
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4089f6
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x5c], ebp
lea ecx, [esp + 0x228]
push ecx
call ebx
lea edx, [esp + 0x118]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.depID
mov word [esp + 0xbc], 8
call fcn.004570b0
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x14
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x408a5b
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0xb8]
push eax
lea edx, [esp + 0x1cc]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x2b4], 0x15
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x16
je 0x408aa7
cmp dword [esi + 4], ebp
jne 0x408aa2
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x408aa9
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 3
push edi
call fcn.0042e120
mov eax, dword [esp + 0x64]
cmp eax, ebp
mov byte [esp + 0x2b0], 0x15
je 0x408b04
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x408b00
cmp esi, ebp
je 0x408b00
mov eax, dword [esi]
cmp eax, ebp
je 0x408ae7
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x408af7
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x64], ebp
lea ecx, [esp + 0x1c8]
push ecx
call ebx
lea edx, [esp + 0xb8]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.empSex
mov word [esp + 0x8c], 8
call fcn.004570b0
mov dword [esp + 0x90], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x17
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x408b5c
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0x88]
push eax
lea edx, [esp + 0x26c]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x2b4], 0x18
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x19
je 0x408ba8
cmp dword [esi + 4], ebp
jne 0x408ba3
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x408baa
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 4
push edi
call fcn.0042e120
mov eax, dword [esp + 0x6c]
cmp eax, ebp
mov byte [esp + 0x2b0], 0x18
je 0x408c05
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x408c01
cmp esi, ebp
je 0x408c01
mov eax, dword [esi]
cmp eax, ebp
je 0x408be8
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x408bf8
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x6c], ebp
lea ecx, [esp + 0x268]
push ecx
call ebx
lea edx, [esp + 0x88]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.marryState
mov word [esp + 0xdc], 8
call fcn.004570b0
mov dword [esp + 0xe0], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x1a
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x408c5d
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0xd8]
push eax
lea edx, [esp + 0x1ec]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x2b4], 0x1b
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x1c
je 0x408ca9
cmp dword [esi + 4], ebp
jne 0x408ca4
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x408cab
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 5
push edi
call fcn.0042e120
mov eax, dword [esp + 0x74]
cmp eax, ebp
mov byte [esp + 0x2b0], 0x1b
je 0x408d06
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x408d02
cmp esi, ebp
je 0x408d02
mov eax, dword [esi]
cmp eax, ebp
je 0x408ce9
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x408cf9
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x74], ebp
lea ecx, [esp + 0x1e8]
push ecx
call ebx
lea edx, [esp + 0xd8]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.cultureLevel
mov word [esp + 0x13c], 8
call fcn.004570b0
mov dword [esp + 0x140], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x1d
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x408d5e
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0x138]
push eax
lea edx, [esp + 0x24c]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x2b4], 0x1e
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x1f
je 0x408daa
cmp dword [esi + 4], ebp
jne 0x408da5
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x408dac
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 6
push edi
call fcn.0042e120
mov eax, dword [esp + 0x50]
cmp eax, ebp
mov byte [esp + 0x2b0], 0x1e
je 0x408e07
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x408e03
cmp esi, ebp
je 0x408e03
mov eax, dword [esi]
cmp eax, ebp
je 0x408dea
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x408dfa
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x50], ebp
lea ecx, [esp + 0x248]
push ecx
call ebx
lea edx, [esp + 0x138]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.empBirth
mov word [esp + 0xfc], 8
call fcn.004570b0
mov dword [esp + 0x100], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x20
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x408e5f
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0xf8]
push eax
lea edx, [esp + 0x20c]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2b4], 0x21
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x22
je 0x408eab
cmp dword [esi + 4], ebp
jne 0x408ea6
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x408ead
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 7
push edi
call fcn.0042e120
mov eax, dword [esp + 0x58]
cmp eax, ebp
mov byte [esp + 0x2b0], 0x21
je 0x408f08
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x408f04
cmp esi, ebp
je 0x408f04
mov eax, dword [esi]
cmp eax, ebp
je 0x408eeb
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x408efb
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x58], ebp
lea ecx, [esp + 0x208]
push ecx
call ebx
lea edx, [esp + 0xf8]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.fromDate
mov word [esp + 0x17c], 8
call fcn.004570b0
mov dword [esp + 0x180], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x23
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x408f60
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0x178]
push eax
lea edx, [esp + 0x28c]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x2b4], 0x24
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x25
je 0x408fac
cmp dword [esi + 4], ebp
jne 0x408fa7
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x408fae
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 8
push edi
call fcn.0042e120
mov eax, dword [esp + 0x70]
cmp eax, ebp
mov byte [esp + 0x2b0], 0x24
je 0x409009
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x409005
cmp esi, ebp
je 0x409005
mov eax, dword [esi]
cmp eax, ebp
je 0x408fec
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x408ffc
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x70], ebp
lea ecx, [esp + 0x288]
push ecx
call ebx
lea edx, [esp + 0x178]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.fromCorp
mov word [esp + 0x9c], 8
call fcn.004570b0
mov dword [esp + 0xa0], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x26
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x409061
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0x98]
push eax
lea edx, [esp + 0x1ac]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x2b4], 0x27
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x28
je 0x4090ad
cmp dword [esi + 4], ebp
jne 0x4090a8
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4090af
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 9
push edi
call fcn.0042e120
mov eax, dword [esp + 0x60]
cmp eax, ebp
mov byte [esp + 0x2b0], 0x27
je 0x40910a
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x409106
cmp esi, ebp
je 0x409106
mov eax, dword [esi]
cmp eax, ebp
je 0x4090ed
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4090fd
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x60], ebp
lea ecx, [esp + 0x1a8]
push ecx
call ebx
lea edx, [esp + 0x98]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.leaveDate
mov word [esp + 0xac], 8
call fcn.004570b0
mov dword [esp + 0xb0], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x29
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x409162
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0xa8]
push eax
lea edx, [esp + 0x1bc]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x2b4], 0x2a
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x2b
je 0x4091b1
cmp dword [esi + 4], ebp
jne 0x4091ac
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4091b3
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 0xa
push edi
call fcn.0042e120
mov eax, dword [esp + 0x80]
cmp eax, ebp
mov byte [esp + 0x2b0], 0x2a
je 0x409214
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x40920d
cmp esi, ebp
je 0x40920d
mov eax, dword [esi]
cmp eax, ebp
je 0x4091f4
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x409204
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x80], ebp
lea ecx, [esp + 0x1b8]
push ecx
call ebx
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.toCorp
mov word [esp + 0xcc], 8
call fcn.004570b0
mov dword [esp + 0xd0], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x2c
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x40926c
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0xc8]
push eax
lea edx, [esp + 0x1dc]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x2b4], 0x2d
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x2e
je 0x4092b8
cmp dword [esi + 4], ebp
jne 0x4092b3
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4092ba
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 0xb
push edi
call fcn.0042e120
mov eax, dword [esp + 0x68]
cmp eax, ebp
mov byte [esp + 0x2b0], 0x2d
je 0x409315
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x409311
cmp esi, ebp
je 0x409311
mov eax, dword [esi]
cmp eax, ebp
je 0x4092f8
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x409308
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x68], ebp
lea ecx, [esp + 0x1d8]
push ecx
call ebx
lea edx, [esp + 0xc8]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.curPosition
mov word [esp + 0xec], 8
call fcn.004570b0
mov dword [esp + 0xf0], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x2f
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x40936d
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0xe8]
push eax
lea edx, [esp + 0x1fc]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x2b4], 0x30
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x31
je 0x4093b9
cmp dword [esi + 4], ebp
jne 0x4093b4
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4093bb
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 0xc
push edi
call fcn.0042e120
mov eax, dword [esp + 0x78]
cmp eax, ebp
mov byte [esp + 0x2b0], 0x30
je 0x409416
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x409412
cmp esi, ebp
je 0x409412
mov eax, dword [esi]
cmp eax, ebp
je 0x4093f9
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x409409
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x78], ebp
lea ecx, [esp + 0x1f8]
push ecx
call ebx
lea edx, [esp + 0xe8]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.appointDate
mov word [esp + 0x10c], 8
call fcn.004570b0
mov dword [esp + 0x110], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x32
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x40946e
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0x108]
push eax
lea edx, [esp + 0x21c]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x2b4], 0x33
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x34
je 0x4094ba
cmp dword [esi + 4], ebp
jne 0x4094b5
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4094bc
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 0xd
push edi
call fcn.0042e120
mov eax, dword [esp + 0x54]
cmp eax, ebp
mov byte [esp + 0x2b0], 0x33
je 0x409517
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x409513
cmp esi, ebp
je 0x409513
mov eax, dword [esi]
cmp eax, ebp
je 0x4094fa
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x40950a
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x54], ebp
lea ecx, [esp + 0x218]
push ecx
call ebx
lea edx, [esp + 0x108]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.payLevel
mov word [esp + 0x12c], 8
call fcn.004570b0
mov dword [esp + 0x130], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x35
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x40956f
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0x128]
push eax
lea edx, [esp + 0x23c]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x2b4], 0x36
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x37
je 0x4095bb
cmp dword [esi + 4], ebp
jne 0x4095b6
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4095bd
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 0xe
push edi
call fcn.0042e120
mov eax, dword [esp + 0x3c]
cmp eax, ebp
mov byte [esp + 0x2b0], 0x36
je 0x409618
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x409614
cmp esi, ebp
je 0x409614
mov eax, dword [esi]
cmp eax, ebp
je 0x4095fb
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x40960b
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x3c], ebp
lea ecx, [esp + 0x238]
push ecx
call ebx
lea edx, [esp + 0x128]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.contactAdd
mov word [esp + 0x14c], 8
call fcn.004570b0
mov dword [esp + 0x150], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x38
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x409670
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0x148]
push eax
lea edx, [esp + 0x25c]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2b4], 0x39
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x3a
je 0x4096bc
cmp dword [esi + 4], ebp
jne 0x4096b7
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4096be
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 0xf
push edi
call fcn.0042e120
mov eax, dword [esp + 0x38]
cmp eax, ebp
mov byte [esp + 0x2b0], 0x39
je 0x409719
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x409715
cmp esi, ebp
je 0x409715
mov eax, dword [esi]
cmp eax, ebp
je 0x4096fc
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x40970c
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x38], ebp
lea ecx, [esp + 0x258]
push ecx
call ebx
lea edx, [esp + 0x148]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.contactNum
mov word [esp + 0x16c], 8
call fcn.004570b0
mov dword [esp + 0x170], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x3b
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x409771
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0x168]
push eax
lea edx, [esp + 0x27c]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2b4], 0x3c
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x3d
je 0x4097bd
cmp dword [esi + 4], ebp
jne 0x4097b8
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4097bf
xor esi, esi
mov ecx, dword [esp + 0x14]
push esi
push 0x10
push edi
call fcn.0042e120
mov eax, dword [esp + 0x18]
cmp eax, ebp
mov byte [esp + 0x2b0], 0x3c
je 0x40981a
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x409816
cmp esi, ebp
je 0x409816
mov eax, dword [esi]
cmp eax, ebp
je 0x4097fd
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x40980d
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x278]
push ecx
call ebx
lea edx, [esp + 0x168]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
push str.state
mov word [esp + 0x18c], 8
call fcn.004570b0
mov dword [esp + 0x190], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0x3e
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x409872
push 0x80004003
call fcn.004573a0
mov ecx, dword [esi]
lea eax, [esp + 0x188]
push eax
lea edx, [esp + 0x29c]
push edx
call fcn.00401ca0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b4], 0x3f
call fcn.00402130
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x2b0], 0x40
je 0x4098be
cmp dword [esi + 4], ebp
jne 0x4098b9
mov eax, dword [esi]
push eax
call fcn.00457240
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4098c0
xor esi, esi
push esi
call fcn.004428d4
mov edi, eax
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebp
mov byte [esp + 0x2b0], 0x3f
je 0x409919
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x409915
cmp esi, ebp
je 0x409915
mov eax, dword [esi]
cmp eax, ebp
je 0x4098fc
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x40990c
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x298]
push ecx
call ebx
lea edx, [esp + 0x188]
push edx
mov byte [esp + 0x2b4], 0xd
call ebx
mov eax, edi
sub eax, 2
push 4
lea ecx, [esp + 0x34]
je 0x409961
sub eax, 1
je 0x40995a
sub eax, 1
je 0x409953
push 0x4606e0
jmp 0x409966
push 0x4606d8
jmp 0x409966
push 0x4606d0
jmp 0x409966
push 0x4606c8
call fcn.00401fe0
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
push edi
push 0x11
push eax
add ecx, 0x74
call fcn.0042e120
lea ecx, [esp + 0x20]
call fcn.00401150
mov esi, eax
cmp dword [esi], ebp
jne 0x40999c
push 0x80004003
call fcn.004573a0
mov esi, dword [esi]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x90]
push esi
call edx
cmp eax, ebp
jge 0x4099b9
push 0x45f678
push esi
push eax
call fcn.004573b0
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x44], eax
jmp 0x408790
lea ecx, [esp + 0x20]
call fcn.00401300
lea eax, [edi - 0x10]
mov byte [esp + 0x2b0], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4099f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x2b0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x2c]
cmp esi, ebp
mov byte [esp + 0x2b0], 2
je 0x409a5f
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x409a5f
mov eax, dword [esi]
cmp eax, ebp
je 0x409a46
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x409a56
push eax
call fcn.00425c92
add esp, 4
push esi
call fcn.00425c92
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 1
call fcn.004012d0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x2b0], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409a98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x2b0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ac3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a0
ret